{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4653","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4653/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4653/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4653/events","html_url":"https://github.com/scikit-learn/scikit-learn/pull/4653","id":72191293,"number":4653,"title":"Added verbose flag to GMM","user":{"login":"ssaeger","id":1192254,"avatar_url":"https://avatars.githubusercontent.com/u/1192254?v=3","gravatar_id":"","url":"https://api.github.com/users/ssaeger","html_url":"https://github.com/ssaeger","followers_url":"https://api.github.com/users/ssaeger/followers","following_url":"https://api.github.com/users/ssaeger/following{/other_user}","gists_url":"https://api.github.com/users/ssaeger/gists{/gist_id}","starred_url":"https://api.github.com/users/ssaeger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssaeger/subscriptions","organizations_url":"https://api.github.com/users/ssaeger/orgs","repos_url":"https://api.github.com/users/ssaeger/repos","events_url":"https://api.github.com/users/ssaeger/events{/privacy}","received_events_url":"https://api.github.com/users/ssaeger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-30T15:16:22Z","updated_at":"2015-04-30T19:05:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/4653","html_url":"https://github.com/scikit-learn/scikit-learn/pull/4653","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/4653.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/4653.patch"},"body":"This PR addresses issue #4633.\r\nExample outputs for a GMM with `n_init=2`:\r\n`verbose = 1`\r\n\r\n    Expectation-maximization algorithm started.\r\n    Initialization 1\r\n        EM iteration 1\r\n        EM iteration 2\r\n        EM iteration 3\r\n        EM iteration 4\r\n        EM iteration 5\r\n        EM iteration 6\r\n            EM algorithm converged.\r\n    Initialization 2\r\n        EM iteration 1\r\n        EM iteration 2\r\n        EM iteration 3\r\n        EM iteration 4\r\n        EM iteration 5\r\n        EM iteration 6\r\n            EM algorithm converged.\r\n\r\n`verbose > 1`\r\n\r\n    Expectation-maximization algorithm started.\r\n    Initialization 1\r\n        Means have been initialized.\r\n        Weights have been initialized.\r\n        Covariance matrices have been initialized.\r\n        EM iteration 1\r\n            EM iteration 1 took 0.00023s\r\n        EM iteration 2\r\n            Change: 0.254791525352\r\n            EM iteration 2 took 0.00023s\r\n        EM iteration 3\r\n            Change: 0.668347041104\r\n            EM iteration 3 took 0.00023s\r\n        EM iteration 4\r\n            Change: 4.01160843517\r\n            EM iteration 4 took 0.00024s\r\n        EM iteration 5\r\n            Change: 0.00821640659597\r\n            EM iteration 5 took 0.00024s\r\n        EM iteration 6\r\n            Change: 0.0\r\n            EM algorithm converged.\r\n        Better parameters were found.\r\n        Initialization 1 took 0.00660s\r\n    Initialization 2\r\n        Means have been initialized.\r\n        Weights have been initialized.\r\n        Covariance matrices have been initialized.\r\n        EM iteration 1\r\n            EM iteration 1 took 0.00025s\r\n        EM iteration 2\r\n            Change: 0.254791525352\r\n            EM iteration 2 took 0.00026s\r\n        EM iteration 3\r\n            Change: 0.668347041104\r\n            EM iteration 3 took 0.00023s\r\n        EM iteration 4\r\n            Change: 4.01160843517\r\n            EM iteration 4 took 0.00023s\r\n        EM iteration 5\r\n            Change: 0.00821640659597\r\n            EM iteration 5 took 0.00023s\r\n        EM iteration 6\r\n            Change: 0.0\r\n            EM algorithm converged.\r\n        Initialization 2 took 0.00661s"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/97929183","html_url":"https://github.com/scikit-learn/scikit-learn/pull/4653#issuecomment-97929183","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4653","id":97929183,"user":{"login":"amueller","id":449558,"avatar_url":"https://avatars.githubusercontent.com/u/449558?v=3","gravatar_id":"","url":"https://api.github.com/users/amueller","html_url":"https://github.com/amueller","followers_url":"https://api.github.com/users/amueller/followers","following_url":"https://api.github.com/users/amueller/following{/other_user}","gists_url":"https://api.github.com/users/amueller/gists{/gist_id}","starred_url":"https://api.github.com/users/amueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amueller/subscriptions","organizations_url":"https://api.github.com/users/amueller/orgs","repos_url":"https://api.github.com/users/amueller/repos","events_url":"https://api.github.com/users/amueller/events{/privacy}","received_events_url":"https://api.github.com/users/amueller/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T19:05:47Z","updated_at":"2015-04-30T19:05:47Z","body":"Hum, I would like to change it to an integer, but we need to make it backward compatible.\r\nSo if someone passes a boolean, this needs to be caught in the ``fit`` (not the ``__init__``), a deprecation warning needs to be raised, and it needs to be converted to an integer (but the self.verbose attribute should not be changed)."}}