{"action":"created","comment":{"url":"https://api.github.com/repos/pymc-devs/pymc3/pulls/comments/40897497","id":40897497,"diff_hunk":"@@ -150,32 +150,32 @@ def __init__(self):\n     def forward(self, x):\n         #reverse cumsum\n         x0 = x[:-1]\n-        s = t.extra_ops.cumsum(x0[::-1])[::-1] + x[-1]\n+        s = t.extra_ops.cumsum(x0[::-1], 0)[::-1] + x[-1]\n         z = x0/s\n         Km1 = x.shape[0] - 1\n-        k = arange(Km1)\n+        k = arange(Km1)[(slice(None), ) + (None, ) * (x.ndim - 1)]","path":"pymc3/distributions/transforms.py","position":9,"original_position":9,"commit_id":"78d5fecfeafa5b18ea81063e4bcdac344e3fa06c","original_commit_id":"78d5fecfeafa5b18ea81063e4bcdac344e3fa06c","user":{"login":"MichielCottaar","id":4652580,"avatar_url":"https://avatars.githubusercontent.com/u/4652580?v=3","gravatar_id":"","url":"https://api.github.com/users/MichielCottaar","html_url":"https://github.com/MichielCottaar","followers_url":"https://api.github.com/users/MichielCottaar/followers","following_url":"https://api.github.com/users/MichielCottaar/following{/other_user}","gists_url":"https://api.github.com/users/MichielCottaar/gists{/gist_id}","starred_url":"https://api.github.com/users/MichielCottaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichielCottaar/subscriptions","organizations_url":"https://api.github.com/users/MichielCottaar/orgs","repos_url":"https://api.github.com/users/MichielCottaar/repos","events_url":"https://api.github.com/users/MichielCottaar/events{/privacy}","received_events_url":"https://api.github.com/users/MichielCottaar/received_events","type":"User","site_admin":false},"body":"This ensures that k (and hence eq_share) has the same number of dimensions as x, which is necessary for it to be subtracted from logit(z). ","created_at":"2015-10-01T10:05:03Z","updated_at":"2015-10-01T10:05:03Z","html_url":"https://github.com/pymc-devs/pymc3/pull/844#discussion_r40897497","pull_request_url":"https://api.github.com/repos/pymc-devs/pymc3/pulls/844","_links":{"self":{"href":"https://api.github.com/repos/pymc-devs/pymc3/pulls/comments/40897497"},"html":{"href":"https://github.com/pymc-devs/pymc3/pull/844#discussion_r40897497"},"pull_request":{"href":"https://api.github.com/repos/pymc-devs/pymc3/pulls/844"}}},"pull_request":{"url":"https://api.github.com/repos/pymc-devs/pymc3/pulls/844","id":46446286,"html_url":"https://github.com/pymc-devs/pymc3/pull/844","diff_url":"https://github.com/pymc-devs/pymc3/pull/844.diff","patch_url":"https://github.com/pymc-devs/pymc3/pull/844.patch","issue_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/844","number":844,"state":"open","locked":false,"title":"Allow multi-dimensional dirichet (correct pull)","user":{"login":"MichielCottaar","id":4652580,"avatar_url":"https://avatars.githubusercontent.com/u/4652580?v=3","gravatar_id":"","url":"https://api.github.com/users/MichielCottaar","html_url":"https://github.com/MichielCottaar","followers_url":"https://api.github.com/users/MichielCottaar/followers","following_url":"https://api.github.com/users/MichielCottaar/following{/other_user}","gists_url":"https://api.github.com/users/MichielCottaar/gists{/gist_id}","starred_url":"https://api.github.com/users/MichielCottaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichielCottaar/subscriptions","organizations_url":"https://api.github.com/users/MichielCottaar/orgs","repos_url":"https://api.github.com/users/MichielCottaar/repos","events_url":"https://api.github.com/users/MichielCottaar/events{/privacy}","received_events_url":"https://api.github.com/users/MichielCottaar/received_events","type":"User","site_admin":false},"body":"This alters the StickBreaking transformation to allow for multi-dimensional Dirichlet object. This should resolve #792 . The first dimension is treated as special and the sum along this dimension of the resultant variables are consistenlty one. Both the log(p) and the jacobian of the transformation are now multi-dimensional array with summation only over the first dimension, which means that a useful logp_elemwiset is created.","created_at":"2015-09-30T19:38:08Z","updated_at":"2015-10-01T10:05:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21a7e24bac2645b19e96cfd15b3c8453215bd964","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pymc-devs/pymc3/pulls/844/commits","review_comments_url":"https://api.github.com/repos/pymc-devs/pymc3/pulls/844/comments","review_comment_url":"https://api.github.com/repos/pymc-devs/pymc3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/844/comments","statuses_url":"https://api.github.com/repos/pymc-devs/pymc3/statuses/78d5fecfeafa5b18ea81063e4bcdac344e3fa06c","head":{"label":"MichielCottaar:md-dirichlet","ref":"md-dirichlet","sha":"78d5fecfeafa5b18ea81063e4bcdac344e3fa06c","user":{"login":"MichielCottaar","id":4652580,"avatar_url":"https://avatars.githubusercontent.com/u/4652580?v=3","gravatar_id":"","url":"https://api.github.com/users/MichielCottaar","html_url":"https://github.com/MichielCottaar","followers_url":"https://api.github.com/users/MichielCottaar/followers","following_url":"https://api.github.com/users/MichielCottaar/following{/other_user}","gists_url":"https://api.github.com/users/MichielCottaar/gists{/gist_id}","starred_url":"https://api.github.com/users/MichielCottaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichielCottaar/subscriptions","organizations_url":"https://api.github.com/users/MichielCottaar/orgs","repos_url":"https://api.github.com/users/MichielCottaar/repos","events_url":"https://api.github.com/users/MichielCottaar/events{/privacy}","received_events_url":"https://api.github.com/users/MichielCottaar/received_events","type":"User","site_admin":false},"repo":{"id":43443933,"name":"pymc3","full_name":"MichielCottaar/pymc3","owner":{"login":"MichielCottaar","id":4652580,"avatar_url":"https://avatars.githubusercontent.com/u/4652580?v=3","gravatar_id":"","url":"https://api.github.com/users/MichielCottaar","html_url":"https://github.com/MichielCottaar","followers_url":"https://api.github.com/users/MichielCottaar/followers","following_url":"https://api.github.com/users/MichielCottaar/following{/other_user}","gists_url":"https://api.github.com/users/MichielCottaar/gists{/gist_id}","starred_url":"https://api.github.com/users/MichielCottaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichielCottaar/subscriptions","organizations_url":"https://api.github.com/users/MichielCottaar/orgs","repos_url":"https://api.github.com/users/MichielCottaar/repos","events_url":"https://api.github.com/users/MichielCottaar/events{/privacy}","received_events_url":"https://api.github.com/users/MichielCottaar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MichielCottaar/pymc3","description":"PyMC version 3","fork":true,"url":"https://api.github.com/repos/MichielCottaar/pymc3","forks_url":"https://api.github.com/repos/MichielCottaar/pymc3/forks","keys_url":"https://api.github.com/repos/MichielCottaar/pymc3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MichielCottaar/pymc3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MichielCottaar/pymc3/teams","hooks_url":"https://api.github.com/repos/MichielCottaar/pymc3/hooks","issue_events_url":"https://api.github.com/repos/MichielCottaar/pymc3/issues/events{/number}","events_url":"https://api.github.com/repos/MichielCottaar/pymc3/events","assignees_url":"https://api.github.com/repos/MichielCottaar/pymc3/assignees{/user}","branches_url":"https://api.github.com/repos/MichielCottaar/pymc3/branches{/branch}","tags_url":"https://api.github.com/repos/MichielCottaar/pymc3/tags","blobs_url":"https://api.github.com/repos/MichielCottaar/pymc3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MichielCottaar/pymc3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MichielCottaar/pymc3/git/refs{/sha}","trees_url":"https://api.github.com/repos/MichielCottaar/pymc3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MichielCottaar/pymc3/statuses/{sha}","languages_url":"https://api.github.com/repos/MichielCottaar/pymc3/languages","stargazers_url":"https://api.github.com/repos/MichielCottaar/pymc3/stargazers","contributors_url":"https://api.github.com/repos/MichielCottaar/pymc3/contributors","subscribers_url":"https://api.github.com/repos/MichielCottaar/pymc3/subscribers","subscription_url":"https://api.github.com/repos/MichielCottaar/pymc3/subscription","commits_url":"https://api.github.com/repos/MichielCottaar/pymc3/commits{/sha}","git_commits_url":"https://api.github.com/repos/MichielCottaar/pymc3/git/commits{/sha}","comments_url":"https://api.github.com/repos/MichielCottaar/pymc3/comments{/number}","issue_comment_url":"https://api.github.com/repos/MichielCottaar/pymc3/issues/comments{/number}","contents_url":"https://api.github.com/repos/MichielCottaar/pymc3/contents/{+path}","compare_url":"https://api.github.com/repos/MichielCottaar/pymc3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MichielCottaar/pymc3/merges","archive_url":"https://api.github.com/repos/MichielCottaar/pymc3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MichielCottaar/pymc3/downloads","issues_url":"https://api.github.com/repos/MichielCottaar/pymc3/issues{/number}","pulls_url":"https://api.github.com/repos/MichielCottaar/pymc3/pulls{/number}","milestones_url":"https://api.github.com/repos/MichielCottaar/pymc3/milestones{/number}","notifications_url":"https://api.github.com/repos/MichielCottaar/pymc3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MichielCottaar/pymc3/labels{/name}","releases_url":"https://api.github.com/repos/MichielCottaar/pymc3/releases{/id}","created_at":"2015-09-30T16:18:28Z","updated_at":"2015-09-30T16:18:33Z","pushed_at":"2015-09-30T16:42:35Z","git_url":"git://github.com/MichielCottaar/pymc3.git","ssh_url":"git@github.com:MichielCottaar/pymc3.git","clone_url":"https://github.com/MichielCottaar/pymc3.git","svn_url":"https://github.com/MichielCottaar/pymc3","homepage":"","size":59599,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pymc-devs:master","ref":"master","sha":"649011f6a7ebac67f5a1a45adb077f89b4c8bb55","user":{"login":"pymc-devs","id":81121,"avatar_url":"https://avatars.githubusercontent.com/u/81121?v=3","gravatar_id":"","url":"https://api.github.com/users/pymc-devs","html_url":"https://github.com/pymc-devs","followers_url":"https://api.github.com/users/pymc-devs/followers","following_url":"https://api.github.com/users/pymc-devs/following{/other_user}","gists_url":"https://api.github.com/users/pymc-devs/gists{/gist_id}","starred_url":"https://api.github.com/users/pymc-devs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pymc-devs/subscriptions","organizations_url":"https://api.github.com/users/pymc-devs/orgs","repos_url":"https://api.github.com/users/pymc-devs/repos","events_url":"https://api.github.com/users/pymc-devs/events{/privacy}","received_events_url":"https://api.github.com/users/pymc-devs/received_events","type":"Organization","site_admin":false},"repo":{"id":192904,"name":"pymc3","full_name":"pymc-devs/pymc3","owner":{"login":"pymc-devs","id":81121,"avatar_url":"https://avatars.githubusercontent.com/u/81121?v=3","gravatar_id":"","url":"https://api.github.com/users/pymc-devs","html_url":"https://github.com/pymc-devs","followers_url":"https://api.github.com/users/pymc-devs/followers","following_url":"https://api.github.com/users/pymc-devs/following{/other_user}","gists_url":"https://api.github.com/users/pymc-devs/gists{/gist_id}","starred_url":"https://api.github.com/users/pymc-devs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pymc-devs/subscriptions","organizations_url":"https://api.github.com/users/pymc-devs/orgs","repos_url":"https://api.github.com/users/pymc-devs/repos","events_url":"https://api.github.com/users/pymc-devs/events{/privacy}","received_events_url":"https://api.github.com/users/pymc-devs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pymc-devs/pymc3","description":"PyMC version 3","fork":false,"url":"https://api.github.com/repos/pymc-devs/pymc3","forks_url":"https://api.github.com/repos/pymc-devs/pymc3/forks","keys_url":"https://api.github.com/repos/pymc-devs/pymc3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pymc-devs/pymc3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pymc-devs/pymc3/teams","hooks_url":"https://api.github.com/repos/pymc-devs/pymc3/hooks","issue_events_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/events{/number}","events_url":"https://api.github.com/repos/pymc-devs/pymc3/events","assignees_url":"https://api.github.com/repos/pymc-devs/pymc3/assignees{/user}","branches_url":"https://api.github.com/repos/pymc-devs/pymc3/branches{/branch}","tags_url":"https://api.github.com/repos/pymc-devs/pymc3/tags","blobs_url":"https://api.github.com/repos/pymc-devs/pymc3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pymc-devs/pymc3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pymc-devs/pymc3/git/refs{/sha}","trees_url":"https://api.github.com/repos/pymc-devs/pymc3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pymc-devs/pymc3/statuses/{sha}","languages_url":"https://api.github.com/repos/pymc-devs/pymc3/languages","stargazers_url":"https://api.github.com/repos/pymc-devs/pymc3/stargazers","contributors_url":"https://api.github.com/repos/pymc-devs/pymc3/contributors","subscribers_url":"https://api.github.com/repos/pymc-devs/pymc3/subscribers","subscription_url":"https://api.github.com/repos/pymc-devs/pymc3/subscription","commits_url":"https://api.github.com/repos/pymc-devs/pymc3/commits{/sha}","git_commits_url":"https://api.github.com/repos/pymc-devs/pymc3/git/commits{/sha}","comments_url":"https://api.github.com/repos/pymc-devs/pymc3/comments{/number}","issue_comment_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/comments{/number}","contents_url":"https://api.github.com/repos/pymc-devs/pymc3/contents/{+path}","compare_url":"https://api.github.com/repos/pymc-devs/pymc3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pymc-devs/pymc3/merges","archive_url":"https://api.github.com/repos/pymc-devs/pymc3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pymc-devs/pymc3/downloads","issues_url":"https://api.github.com/repos/pymc-devs/pymc3/issues{/number}","pulls_url":"https://api.github.com/repos/pymc-devs/pymc3/pulls{/number}","milestones_url":"https://api.github.com/repos/pymc-devs/pymc3/milestones{/number}","notifications_url":"https://api.github.com/repos/pymc-devs/pymc3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pymc-devs/pymc3/labels{/name}","releases_url":"https://api.github.com/repos/pymc-devs/pymc3/releases{/id}","created_at":"2009-05-05T09:43:50Z","updated_at":"2015-09-30T14:57:52Z","pushed_at":"2015-10-01T08:16:09Z","git_url":"git://github.com/pymc-devs/pymc3.git","ssh_url":"git@github.com:pymc-devs/pymc3.git","clone_url":"https://github.com/pymc-devs/pymc3.git","svn_url":"https://github.com/pymc-devs/pymc3","homepage":"","size":59599,"stargazers_count":1232,"watchers_count":1232,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":261,"mirror_url":null,"open_issues_count":94,"forks":261,"open_issues":94,"watchers":1232,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pymc-devs/pymc3/pulls/844"},"html":{"href":"https://github.com/pymc-devs/pymc3/pull/844"},"issue":{"href":"https://api.github.com/repos/pymc-devs/pymc3/issues/844"},"comments":{"href":"https://api.github.com/repos/pymc-devs/pymc3/issues/844/comments"},"review_comments":{"href":"https://api.github.com/repos/pymc-devs/pymc3/pulls/844/comments"},"review_comment":{"href":"https://api.github.com/repos/pymc-devs/pymc3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pymc-devs/pymc3/pulls/844/commits"},"statuses":{"href":"https://api.github.com/repos/pymc-devs/pymc3/statuses/78d5fecfeafa5b18ea81063e4bcdac344e3fa06c"}}}}