{"action":"created","comment":{"url":"https://api.github.com/repos/pgmpy/pgmpy/pulls/comments/43297155","id":43297155,"diff_hunk":"@@ -118,6 +118,11 @@ def test_moral_graph_with_edge_present_over_parents(self):\n             self.assertTrue(edge in [('a', 'b'), ('c', 'b'), ('d', 'a'), ('d', 'b'), ('d', 'e')] or\n                             (edge[1], edge[0]) in [('a', 'b'), ('c', 'b'), ('d', 'a'), ('d', 'b'), ('d', 'e')])\n \n+    \n+    def test_local_independencies(self):\n+        from pgmpy.independencies import Independencies\n+        self.assertEqual(self.G.local_independencies('a'),Independencies(['a',['b','c']]))","path":"pgmpy/tests/test_models/test_BayesianModel.py","position":null,"original_position":7,"commit_id":"af8aefc6e09bb6b4e16ce48674cb55adc50a518a","original_commit_id":"d14da86dc1fa300b37a01fcfc94997b4c95deaa0","user":{"login":"ankurankan","id":1461453,"avatar_url":"https://avatars.githubusercontent.com/u/1461453?v=3","gravatar_id":"","url":"https://api.github.com/users/ankurankan","html_url":"https://github.com/ankurankan","followers_url":"https://api.github.com/users/ankurankan/followers","following_url":"https://api.github.com/users/ankurankan/following{/other_user}","gists_url":"https://api.github.com/users/ankurankan/gists{/gist_id}","starred_url":"https://api.github.com/users/ankurankan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankurankan/subscriptions","organizations_url":"https://api.github.com/users/ankurankan/orgs","repos_url":"https://api.github.com/users/ankurankan/repos","events_url":"https://api.github.com/users/ankurankan/events{/privacy}","received_events_url":"https://api.github.com/users/ankurankan/received_events","type":"User","site_admin":false},"body":"Yeah, go ahead with\n\nOn Wed, Oct 28, 2015 at 11:50 PM, Kshitij Saraogi <notifications@github.com>\nwrote:\n\n> In pgmpy/tests/test_models/test_BayesianModel.py\n> <https://github.com/pgmpy/pgmpy/pull/498#discussion_r43296926>:\n>\n> > @@ -118,6 +118,11 @@ def test_moral_graph_with_edge_present_over_parents(self):\n> >              self.assertTrue(edge in [('a', 'b'), ('c', 'b'), ('d', 'a'), ('d', 'b'), ('d', 'e')] or\n> >                              (edge[1], edge[0]) in [('a', 'b'), ('c', 'b'), ('d', 'a'), ('d', 'b'), ('d', 'e')])\n> >\n> > +\n> > +    def test_local_independencies(self):\n> > +        from pgmpy.independencies import Independencies\n> > +        self.assertEqual(self.G.local_independencies('a'),Independencies(['a',['b','c']]))\n>\n> @ankurankan <https://github.com/ankurankan> I think adding an __eq__\n> method in the Independencies class would be a better choice, since it can\n> be used in the future.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/pgmpy/pgmpy/pull/498/files#r43296926>.\n>\n> --\n> You received this message because you are subscribed to the Google Groups\n> \"pgmpy\" group.\n> To unsubscribe from this group and stop receiving emails from it, send an\n> email to pgmpy+unsubscribe@googlegroups.com.\n> To post to this group, send email to pgmpy@googlegroups.com.\n> To view this discussion on the web visit\n> https://groups.google.com/d/msgid/pgmpy/pgmpy/pgmpy/pull/498/r43296926%40github.com\n> <https://groups.google.com/d/msgid/pgmpy/pgmpy/pgmpy/pull/498/r43296926%40github.com?utm_medium=email&utm_source=footer>\n> .\n>\n> For more options, visit https://groups.google.com/d/optout.\n>\n","created_at":"2015-10-28T18:22:29Z","updated_at":"2015-10-28T18:22:29Z","html_url":"https://github.com/pgmpy/pgmpy/pull/498#discussion_r43297155","pull_request_url":"https://api.github.com/repos/pgmpy/pgmpy/pulls/498","_links":{"self":{"href":"https://api.github.com/repos/pgmpy/pgmpy/pulls/comments/43297155"},"html":{"href":"https://github.com/pgmpy/pgmpy/pull/498#discussion_r43297155"},"pull_request":{"href":"https://api.github.com/repos/pgmpy/pgmpy/pulls/498"}}},"pull_request":{"url":"https://api.github.com/repos/pgmpy/pgmpy/pulls/498","id":48978150,"html_url":"https://github.com/pgmpy/pgmpy/pull/498","diff_url":"https://github.com/pgmpy/pgmpy/pull/498.diff","patch_url":"https://github.com/pgmpy/pgmpy/pull/498.patch","issue_url":"https://api.github.com/repos/pgmpy/pgmpy/issues/498","number":498,"state":"open","locked":false,"title":"added test for local_independencies","user":{"login":"kshitij10496","id":12427142,"avatar_url":"https://avatars.githubusercontent.com/u/12427142?v=3","gravatar_id":"","url":"https://api.github.com/users/kshitij10496","html_url":"https://github.com/kshitij10496","followers_url":"https://api.github.com/users/kshitij10496/followers","following_url":"https://api.github.com/users/kshitij10496/following{/other_user}","gists_url":"https://api.github.com/users/kshitij10496/gists{/gist_id}","starred_url":"https://api.github.com/users/kshitij10496/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshitij10496/subscriptions","organizations_url":"https://api.github.com/users/kshitij10496/orgs","repos_url":"https://api.github.com/users/kshitij10496/repos","events_url":"https://api.github.com/users/kshitij10496/events{/privacy}","received_events_url":"https://api.github.com/users/kshitij10496/received_events","type":"User","site_admin":false},"body":"@ankurankan The test is failing.\r\nPlease review this.\r\nI would like to discuss the error here.\r\n","created_at":"2015-10-28T08:52:07Z","updated_at":"2015-10-28T18:22:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fb5147ae8550028519673ecf2579908a819a912b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pgmpy/pgmpy/pulls/498/commits","review_comments_url":"https://api.github.com/repos/pgmpy/pgmpy/pulls/498/comments","review_comment_url":"https://api.github.com/repos/pgmpy/pgmpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pgmpy/pgmpy/issues/498/comments","statuses_url":"https://api.github.com/repos/pgmpy/pgmpy/statuses/af8aefc6e09bb6b4e16ce48674cb55adc50a518a","head":{"label":"kshitij10496:test_localindependencies","ref":"test_localindependencies","sha":"af8aefc6e09bb6b4e16ce48674cb55adc50a518a","user":{"login":"kshitij10496","id":12427142,"avatar_url":"https://avatars.githubusercontent.com/u/12427142?v=3","gravatar_id":"","url":"https://api.github.com/users/kshitij10496","html_url":"https://github.com/kshitij10496","followers_url":"https://api.github.com/users/kshitij10496/followers","following_url":"https://api.github.com/users/kshitij10496/following{/other_user}","gists_url":"https://api.github.com/users/kshitij10496/gists{/gist_id}","starred_url":"https://api.github.com/users/kshitij10496/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshitij10496/subscriptions","organizations_url":"https://api.github.com/users/kshitij10496/orgs","repos_url":"https://api.github.com/users/kshitij10496/repos","events_url":"https://api.github.com/users/kshitij10496/events{/privacy}","received_events_url":"https://api.github.com/users/kshitij10496/received_events","type":"User","site_admin":false},"repo":{"id":44478240,"name":"pgmpy","full_name":"kshitij10496/pgmpy","owner":{"login":"kshitij10496","id":12427142,"avatar_url":"https://avatars.githubusercontent.com/u/12427142?v=3","gravatar_id":"","url":"https://api.github.com/users/kshitij10496","html_url":"https://github.com/kshitij10496","followers_url":"https://api.github.com/users/kshitij10496/followers","following_url":"https://api.github.com/users/kshitij10496/following{/other_user}","gists_url":"https://api.github.com/users/kshitij10496/gists{/gist_id}","starred_url":"https://api.github.com/users/kshitij10496/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshitij10496/subscriptions","organizations_url":"https://api.github.com/users/kshitij10496/orgs","repos_url":"https://api.github.com/users/kshitij10496/repos","events_url":"https://api.github.com/users/kshitij10496/events{/privacy}","received_events_url":"https://api.github.com/users/kshitij10496/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kshitij10496/pgmpy","description":"Python Library for Probabilistic Graphical Models","fork":true,"url":"https://api.github.com/repos/kshitij10496/pgmpy","forks_url":"https://api.github.com/repos/kshitij10496/pgmpy/forks","keys_url":"https://api.github.com/repos/kshitij10496/pgmpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kshitij10496/pgmpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kshitij10496/pgmpy/teams","hooks_url":"https://api.github.com/repos/kshitij10496/pgmpy/hooks","issue_events_url":"https://api.github.com/repos/kshitij10496/pgmpy/issues/events{/number}","events_url":"https://api.github.com/repos/kshitij10496/pgmpy/events","assignees_url":"https://api.github.com/repos/kshitij10496/pgmpy/assignees{/user}","branches_url":"https://api.github.com/repos/kshitij10496/pgmpy/branches{/branch}","tags_url":"https://api.github.com/repos/kshitij10496/pgmpy/tags","blobs_url":"https://api.github.com/repos/kshitij10496/pgmpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kshitij10496/pgmpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kshitij10496/pgmpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/kshitij10496/pgmpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kshitij10496/pgmpy/statuses/{sha}","languages_url":"https://api.github.com/repos/kshitij10496/pgmpy/languages","stargazers_url":"https://api.github.com/repos/kshitij10496/pgmpy/stargazers","contributors_url":"https://api.github.com/repos/kshitij10496/pgmpy/contributors","subscribers_url":"https://api.github.com/repos/kshitij10496/pgmpy/subscribers","subscription_url":"https://api.github.com/repos/kshitij10496/pgmpy/subscription","commits_url":"https://api.github.com/repos/kshitij10496/pgmpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/kshitij10496/pgmpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/kshitij10496/pgmpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/kshitij10496/pgmpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/kshitij10496/pgmpy/contents/{+path}","compare_url":"https://api.github.com/repos/kshitij10496/pgmpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kshitij10496/pgmpy/merges","archive_url":"https://api.github.com/repos/kshitij10496/pgmpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kshitij10496/pgmpy/downloads","issues_url":"https://api.github.com/repos/kshitij10496/pgmpy/issues{/number}","pulls_url":"https://api.github.com/repos/kshitij10496/pgmpy/pulls{/number}","milestones_url":"https://api.github.com/repos/kshitij10496/pgmpy/milestones{/number}","notifications_url":"https://api.github.com/repos/kshitij10496/pgmpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kshitij10496/pgmpy/labels{/name}","releases_url":"https://api.github.com/repos/kshitij10496/pgmpy/releases{/id}","created_at":"2015-10-18T13:02:09Z","updated_at":"2015-10-18T13:02:10Z","pushed_at":"2015-10-28T18:09:19Z","git_url":"git://github.com/kshitij10496/pgmpy.git","ssh_url":"git@github.com:kshitij10496/pgmpy.git","clone_url":"https://github.com/kshitij10496/pgmpy.git","svn_url":"https://github.com/kshitij10496/pgmpy","homepage":null,"size":4620,"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":"dev"}},"base":{"label":"pgmpy:dev","ref":"dev","sha":"b105702d399d5b45c6d766eede1f2bb66e20972a","user":{"login":"pgmpy","id":5500131,"avatar_url":"https://avatars.githubusercontent.com/u/5500131?v=3","gravatar_id":"","url":"https://api.github.com/users/pgmpy","html_url":"https://github.com/pgmpy","followers_url":"https://api.github.com/users/pgmpy/followers","following_url":"https://api.github.com/users/pgmpy/following{/other_user}","gists_url":"https://api.github.com/users/pgmpy/gists{/gist_id}","starred_url":"https://api.github.com/users/pgmpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgmpy/subscriptions","organizations_url":"https://api.github.com/users/pgmpy/orgs","repos_url":"https://api.github.com/users/pgmpy/repos","events_url":"https://api.github.com/users/pgmpy/events{/privacy}","received_events_url":"https://api.github.com/users/pgmpy/received_events","type":"Organization","site_admin":false},"repo":{"id":12968651,"name":"pgmpy","full_name":"pgmpy/pgmpy","owner":{"login":"pgmpy","id":5500131,"avatar_url":"https://avatars.githubusercontent.com/u/5500131?v=3","gravatar_id":"","url":"https://api.github.com/users/pgmpy","html_url":"https://github.com/pgmpy","followers_url":"https://api.github.com/users/pgmpy/followers","following_url":"https://api.github.com/users/pgmpy/following{/other_user}","gists_url":"https://api.github.com/users/pgmpy/gists{/gist_id}","starred_url":"https://api.github.com/users/pgmpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgmpy/subscriptions","organizations_url":"https://api.github.com/users/pgmpy/orgs","repos_url":"https://api.github.com/users/pgmpy/repos","events_url":"https://api.github.com/users/pgmpy/events{/privacy}","received_events_url":"https://api.github.com/users/pgmpy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pgmpy/pgmpy","description":"Python Library for Probabilistic Graphical Models","fork":false,"url":"https://api.github.com/repos/pgmpy/pgmpy","forks_url":"https://api.github.com/repos/pgmpy/pgmpy/forks","keys_url":"https://api.github.com/repos/pgmpy/pgmpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pgmpy/pgmpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pgmpy/pgmpy/teams","hooks_url":"https://api.github.com/repos/pgmpy/pgmpy/hooks","issue_events_url":"https://api.github.com/repos/pgmpy/pgmpy/issues/events{/number}","events_url":"https://api.github.com/repos/pgmpy/pgmpy/events","assignees_url":"https://api.github.com/repos/pgmpy/pgmpy/assignees{/user}","branches_url":"https://api.github.com/repos/pgmpy/pgmpy/branches{/branch}","tags_url":"https://api.github.com/repos/pgmpy/pgmpy/tags","blobs_url":"https://api.github.com/repos/pgmpy/pgmpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pgmpy/pgmpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pgmpy/pgmpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/pgmpy/pgmpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pgmpy/pgmpy/statuses/{sha}","languages_url":"https://api.github.com/repos/pgmpy/pgmpy/languages","stargazers_url":"https://api.github.com/repos/pgmpy/pgmpy/stargazers","contributors_url":"https://api.github.com/repos/pgmpy/pgmpy/contributors","subscribers_url":"https://api.github.com/repos/pgmpy/pgmpy/subscribers","subscription_url":"https://api.github.com/repos/pgmpy/pgmpy/subscription","commits_url":"https://api.github.com/repos/pgmpy/pgmpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/pgmpy/pgmpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/pgmpy/pgmpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/pgmpy/pgmpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/pgmpy/pgmpy/contents/{+path}","compare_url":"https://api.github.com/repos/pgmpy/pgmpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pgmpy/pgmpy/merges","archive_url":"https://api.github.com/repos/pgmpy/pgmpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pgmpy/pgmpy/downloads","issues_url":"https://api.github.com/repos/pgmpy/pgmpy/issues{/number}","pulls_url":"https://api.github.com/repos/pgmpy/pgmpy/pulls{/number}","milestones_url":"https://api.github.com/repos/pgmpy/pgmpy/milestones{/number}","notifications_url":"https://api.github.com/repos/pgmpy/pgmpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pgmpy/pgmpy/labels{/name}","releases_url":"https://api.github.com/repos/pgmpy/pgmpy/releases{/id}","created_at":"2013-09-20T08:18:58Z","updated_at":"2015-10-27T19:28:20Z","pushed_at":"2015-10-28T18:18:02Z","git_url":"git://github.com/pgmpy/pgmpy.git","ssh_url":"git@github.com:pgmpy/pgmpy.git","clone_url":"https://github.com/pgmpy/pgmpy.git","svn_url":"https://github.com/pgmpy/pgmpy","homepage":null,"size":7352,"stargazers_count":134,"watchers_count":134,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"open_issues_count":62,"forks":55,"open_issues":62,"watchers":134,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/pgmpy/pgmpy/pulls/498"},"html":{"href":"https://github.com/pgmpy/pgmpy/pull/498"},"issue":{"href":"https://api.github.com/repos/pgmpy/pgmpy/issues/498"},"comments":{"href":"https://api.github.com/repos/pgmpy/pgmpy/issues/498/comments"},"review_comments":{"href":"https://api.github.com/repos/pgmpy/pgmpy/pulls/498/comments"},"review_comment":{"href":"https://api.github.com/repos/pgmpy/pgmpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pgmpy/pgmpy/pulls/498/commits"},"statuses":{"href":"https://api.github.com/repos/pgmpy/pgmpy/statuses/af8aefc6e09bb6b4e16ce48674cb55adc50a518a"}}}}