{"action":"created","comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/77870025","id":77870025,"diff_hunk":"@@ -355,6 +355,51 @@ def predict_proba(self, X):\n         _, log_resp = self._estimate_log_prob_resp(X)\n         return np.exp(log_resp)\n \n+    def sample(self, n_samples=1):\n+        \"\"\"Generate random samples from the fitted Gaussian distribution.\n+\n+        Parameters\n+        ----------\n+        n_samples : int, optional\n+            Number of samples to generate. Defaults to 1.\n+\n+        Returns\n+        -------\n+        X : array, shape (n_features, n_samples)","path":"sklearn/mixture/base.py","position":14,"original_position":14,"commit_id":"042a7c9b490bf689eae2d1932fe9cf17fa1ff3aa","original_commit_id":"042a7c9b490bf689eae2d1932fe9cf17fa1ff3aa","user":{"login":"agramfort","id":161052,"avatar_url":"https://avatars.githubusercontent.com/u/161052?v=3","gravatar_id":"","url":"https://api.github.com/users/agramfort","html_url":"https://github.com/agramfort","followers_url":"https://api.github.com/users/agramfort/followers","following_url":"https://api.github.com/users/agramfort/following{/other_user}","gists_url":"https://api.github.com/users/agramfort/gists{/gist_id}","starred_url":"https://api.github.com/users/agramfort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agramfort/subscriptions","organizations_url":"https://api.github.com/users/agramfort/orgs","repos_url":"https://api.github.com/users/agramfort/repos","events_url":"https://api.github.com/users/agramfort/events{/privacy}","received_events_url":"https://api.github.com/users/agramfort/received_events","type":"User","site_admin":false},"body":"should be (n_samples, n_features)","created_at":"2016-09-07T17:39:30Z","updated_at":"2016-09-07T17:39:30Z","html_url":"https://github.com/scikit-learn/scikit-learn/pull/7295#discussion_r77870025","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/77870025"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/7295#discussion_r77870025"},"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-07T17:39:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"196a204f30d7bcdc5276c76e4d74ec24851da111","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":76,"closed_issues":55,"state":"open","created_at":"2015-09-20T02:17:00Z","updated_at":"2016-09-07T06:01:39Z","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/042a7c9b490bf689eae2d1932fe9cf17fa1ff3aa","head":{"label":"tguillemot:GSoC-Dpgmm","ref":"GSoC-Dpgmm","sha":"042a7c9b490bf689eae2d1932fe9cf17fa1ff3aa","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-07T09:50:37Z","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":78140,"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":"6c12514f2511d15c9a4e63630bf238aef9d88934","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-07T16:46:54Z","pushed_at":"2016-09-07T16:27:30Z","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":122862,"stargazers_count":13214,"watchers_count":13214,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7629,"mirror_url":null,"open_issues_count":1276,"forks":7629,"open_issues":1276,"watchers":13214,"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/042a7c9b490bf689eae2d1932fe9cf17fa1ff3aa"}}}}
{"actor":{"display_login":"agramfort"}}