{"action":"created","comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/77646621","id":77646621,"diff_hunk":"@@ -211,49 +211,78 @@ Cons\n \n .. _dpgmm:\n \n-DPGMM: Infinite Gaussian mixtures\n-=================================\n+Dirichlet Process: Infinite Gaussian mixture\n+============================================\n+\n+The :class:`DirichletGaussianMixture` class implements a variant of the\n+Gaussian mixture model with a variable (but bounded) number of components using\n+the Dirichlet Process.\n \n-The :class:`DPGMM` object implements a variant of the Gaussian mixture\n-model with a variable (but bounded) number of components using the\n-Dirichlet Process.\n This class doesn't require the user to choose the number of\n components, and at the expense of extra computational time the user\n only needs to specify a loose upper bound on this number and a\n concentration parameter.\n \n-.. |plot_gmm| image:: ../auto_examples/mixture/images/sphx_glr_plot_gmm_001.png\n+\n+The examples bellow compare Gaussian mixture models with fixed number of\n+components, to the Gaussian mixture models with a Dirichlet process prior. Here,\n+a classical Gaussian mixture is fitted with 5 components on a dataset composed\n+of 2 clusters. We can see that the Dirichlet Gaussian mixture is able to limit\n+itself to only 2 components whereas the Gaussian mixture fits the data with a\n+fixed number of components that has to be set a priori by the user. In this case\n+the user has select ``n_components=5`` which does not match the true generative\n+distribution of this toy dataset. Note that with very little observations, the\n+Dirichlet Gaussian Mixture can take a conservative stand, and fit only one\n+component.\n+\n+.. figure:: ../auto_examples/mixture/images/sphx_glr_plot_gmm_001.png\n    :target: ../auto_examples/mixture/plot_gmm.html\n-   :scale: 48%\n+   :align: center\n+   :scale: 70%\n \n-.. |plot_gmm_sin| image:: ../auto_examples/mixture/images/sphx_glr_plot_gmm_sin_001.png\n-   :target: ../auto_examples/mixture/plot_gmm_sin.html\n-   :scale: 48%\n \n-.. centered:: |plot_gmm| |plot_gmm_sin|\n+On the following example, we are fitting a dataset not well-depicted by a Gaussian\n+mixture. Adjusting the ``weight_concentration_prior``, parameter of the DPGMM\n+controls the number of components used to fit this data.\n \n+.. figure:: ../auto_examples/mixture/images/sphx_glr_plot_gmm_sin_001.png\n+   :target: ../auto_examples/mixture/plot_gmm_sin.html\n+   :align: center\n+   :scale: 65%\n+\n+The next figure presents the resulting clusters computed by the Gaussian mixture\n+with a Dirichlet process prior for different values of\n+``weight_concentration_prior``. The ``weight_concentration_prior`` is related to\n+the number of clusters obtained.  As in Variational Bayesian Gaussian Mixture","path":"doc/modules/mixture.rst","position":147,"original_position":147,"commit_id":"433f3e6b651ed7f5765cc41b6daa0a73b00421f4","original_commit_id":"433f3e6b651ed7f5765cc41b6daa0a73b00421f4","user":{"login":"ogrisel","id":89061,"avatar_url":"https://avatars.githubusercontent.com/u/89061?v=3","gravatar_id":"","url":"https://api.github.com/users/ogrisel","html_url":"https://github.com/ogrisel","followers_url":"https://api.github.com/users/ogrisel/followers","following_url":"https://api.github.com/users/ogrisel/following{/other_user}","gists_url":"https://api.github.com/users/ogrisel/gists{/gist_id}","starred_url":"https://api.github.com/users/ogrisel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogrisel/subscriptions","organizations_url":"https://api.github.com/users/ogrisel/orgs","repos_url":"https://api.github.com/users/ogrisel/repos","events_url":"https://api.github.com/users/ogrisel/events{/privacy}","received_events_url":"https://api.github.com/users/ogrisel/received_events","type":"User","site_admin":false},"body":"The ``weight_concentration_prior`` is related to the number of clusters obtained. \r\n\r\n=>\r\n\r\nThe value of the ``weight_concentration_prior`` parameter has a strong impact on the effective number of active components obtained. \r\n","created_at":"2016-09-06T14:32:46Z","updated_at":"2016-09-06T14:32:46Z","html_url":"https://github.com/scikit-learn/scikit-learn/pull/7295#discussion_r77646621","pull_request_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7295","_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/77646621"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/7295#discussion_r77646621"},"pull_request":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7295"}}},"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7295","id":83298823,"html_url":"https://github.com/scikit-learn/scikit-learn/pull/7295","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/7295.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/7295.patch","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7295","number":7295,"state":"open","locked":false,"title":"[MRG+1] GSoC Final : Dirichlet Gaussian Mixture","user":{"login":"tguillemot","id":17002898,"avatar_url":"https://avatars.githubusercontent.com/u/17002898?v=3","gravatar_id":"","url":"https://api.github.com/users/tguillemot","html_url":"https://github.com/tguillemot","followers_url":"https://api.github.com/users/tguillemot/followers","following_url":"https://api.github.com/users/tguillemot/following{/other_user}","gists_url":"https://api.github.com/users/tguillemot/gists{/gist_id}","starred_url":"https://api.github.com/users/tguillemot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tguillemot/subscriptions","organizations_url":"https://api.github.com/users/tguillemot/orgs","repos_url":"https://api.github.com/users/tguillemot/repos","events_url":"https://api.github.com/users/tguillemot/events{/privacy}","received_events_url":"https://api.github.com/users/tguillemot/received_events","type":"User","site_admin":false},"body":"This closes #7115, closes #2473, closes #2454, closes #1764 ~~and closes #1637~~.\r\n\r\nThis is the last PR to remove completely the old GMM classes.\r\n\r\nHere, you'll find the `DirichletGaussianMixture` class with the doc, examples and tests.\r\n\r\n~~It will be easier to review when #6651 will be merged (and also there will be no conflits).~~\r\n\r\n<del>I have removed the example `plot_gmm_sin.py` because it's wasn't showing the properties of DPGMM correctly for me (it modifies the `covariance_type` through the experiment to obtain better results).</del>\r\n\r\nInstead of that I prefer introduce a similar exemple as the one I have introduce for the `BayesianGaussianMixture`.\r\n![dpgmm](https://cloud.githubusercontent.com/assets/17002898/18122406/a0f33a34-6f69-11e6-8a63-512f315c1207.png)\r\n\r\n","created_at":"2016-08-30T15:57:09Z","updated_at":"2016-09-06T14:32:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01145505a2e89d804ae24e6c6cf1dc9303a6eda4","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones/18","html_url":"https://github.com/scikit-learn/scikit-learn/milestones/0.18","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones/18/labels","id":1314892,"number":18,"title":"0.18","description":"","creator":{"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},"open_issues":72,"closed_issues":55,"state":"open","created_at":"2015-09-20T02:17:00Z","updated_at":"2016-09-06T14:17:49Z","due_on":"2016-02-29T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7295/commits","review_comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7295/comments","review_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7295/comments","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/433f3e6b651ed7f5765cc41b6daa0a73b00421f4","head":{"label":"tguillemot:GSoC-Dpgmm","ref":"GSoC-Dpgmm","sha":"433f3e6b651ed7f5765cc41b6daa0a73b00421f4","user":{"login":"tguillemot","id":17002898,"avatar_url":"https://avatars.githubusercontent.com/u/17002898?v=3","gravatar_id":"","url":"https://api.github.com/users/tguillemot","html_url":"https://github.com/tguillemot","followers_url":"https://api.github.com/users/tguillemot/followers","following_url":"https://api.github.com/users/tguillemot/following{/other_user}","gists_url":"https://api.github.com/users/tguillemot/gists{/gist_id}","starred_url":"https://api.github.com/users/tguillemot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tguillemot/subscriptions","organizations_url":"https://api.github.com/users/tguillemot/orgs","repos_url":"https://api.github.com/users/tguillemot/repos","events_url":"https://api.github.com/users/tguillemot/events{/privacy}","received_events_url":"https://api.github.com/users/tguillemot/received_events","type":"User","site_admin":false},"repo":{"id":50829930,"name":"scikit-learn","full_name":"tguillemot/scikit-learn","owner":{"login":"tguillemot","id":17002898,"avatar_url":"https://avatars.githubusercontent.com/u/17002898?v=3","gravatar_id":"","url":"https://api.github.com/users/tguillemot","html_url":"https://github.com/tguillemot","followers_url":"https://api.github.com/users/tguillemot/followers","following_url":"https://api.github.com/users/tguillemot/following{/other_user}","gists_url":"https://api.github.com/users/tguillemot/gists{/gist_id}","starred_url":"https://api.github.com/users/tguillemot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tguillemot/subscriptions","organizations_url":"https://api.github.com/users/tguillemot/orgs","repos_url":"https://api.github.com/users/tguillemot/repos","events_url":"https://api.github.com/users/tguillemot/events{/privacy}","received_events_url":"https://api.github.com/users/tguillemot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tguillemot/scikit-learn","description":"scikit-learn: machine learning in Python","fork":true,"url":"https://api.github.com/repos/tguillemot/scikit-learn","forks_url":"https://api.github.com/repos/tguillemot/scikit-learn/forks","keys_url":"https://api.github.com/repos/tguillemot/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tguillemot/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tguillemot/scikit-learn/teams","hooks_url":"https://api.github.com/repos/tguillemot/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/tguillemot/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/tguillemot/scikit-learn/events","assignees_url":"https://api.github.com/repos/tguillemot/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/tguillemot/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/tguillemot/scikit-learn/tags","blobs_url":"https://api.github.com/repos/tguillemot/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tguillemot/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tguillemot/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/tguillemot/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tguillemot/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/tguillemot/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/tguillemot/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/tguillemot/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/tguillemot/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/tguillemot/scikit-learn/subscription","commits_url":"https://api.github.com/repos/tguillemot/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/tguillemot/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/tguillemot/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/tguillemot/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/tguillemot/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/tguillemot/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tguillemot/scikit-learn/merges","archive_url":"https://api.github.com/repos/tguillemot/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tguillemot/scikit-learn/downloads","issues_url":"https://api.github.com/repos/tguillemot/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/tguillemot/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/tguillemot/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/tguillemot/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tguillemot/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/tguillemot/scikit-learn/releases{/id}","deployments_url":"https://api.github.com/repos/tguillemot/scikit-learn/deployments","created_at":"2016-02-01T09:46:42Z","updated_at":"2016-02-01T09:46:49Z","pushed_at":"2016-09-06T12:33:11Z","git_url":"git://github.com/tguillemot/scikit-learn.git","ssh_url":"git@github.com:tguillemot/scikit-learn.git","clone_url":"https://github.com/tguillemot/scikit-learn.git","svn_url":"https://github.com/tguillemot/scikit-learn","homepage":"http://scikit-learn.org","size":78024,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scikit-learn:master","ref":"master","sha":"5daee9627d55c3c7eaa23bb306626ee807456376","user":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"repo":{"id":843222,"name":"scikit-learn","full_name":"scikit-learn/scikit-learn","owner":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scikit-learn/scikit-learn","description":"scikit-learn: machine learning in Python","fork":false,"url":"https://api.github.com/repos/scikit-learn/scikit-learn","forks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/forks","keys_url":"https://api.github.com/repos/scikit-learn/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scikit-learn/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scikit-learn/scikit-learn/teams","hooks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/events","assignees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/scikit-learn/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/tags","blobs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/scikit-learn/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscription","commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/scikit-learn/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scikit-learn/scikit-learn/merges","archive_url":"https://api.github.com/repos/scikit-learn/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scikit-learn/scikit-learn/downloads","issues_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/scikit-learn/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/scikit-learn/scikit-learn/releases{/id}","deployments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/deployments","created_at":"2010-08-17T09:43:38Z","updated_at":"2016-09-06T14:24:56Z","pushed_at":"2016-09-06T14:12:02Z","git_url":"git://github.com/scikit-learn/scikit-learn.git","ssh_url":"git@github.com:scikit-learn/scikit-learn.git","clone_url":"https://github.com/scikit-learn/scikit-learn.git","svn_url":"https://github.com/scikit-learn/scikit-learn","homepage":"http://scikit-learn.org","size":123045,"stargazers_count":13183,"watchers_count":13183,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7618,"mirror_url":null,"open_issues_count":1272,"forks":7618,"open_issues":1272,"watchers":13183,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7295"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/7295"},"issue":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7295"},"comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7295/comments"},"review_comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7295/comments"},"review_comment":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7295/commits"},"statuses":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/433f3e6b651ed7f5765cc41b6daa0a73b00421f4"}}}}
{"actor":{"display_login":"ogrisel"}}