{"action":"created","issue":{"url":"https://api.github.com/repos/ysig/GraKeL/issues/5","repository_url":"https://api.github.com/repos/ysig/GraKeL","labels_url":"https://api.github.com/repos/ysig/GraKeL/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/ysig/GraKeL/issues/5/comments","events_url":"https://api.github.com/repos/ysig/GraKeL/issues/5/events","html_url":"https://github.com/ysig/GraKeL/issues/5","id":347455605,"node_id":"MDU6SXNzdWUzNDc0NTU2MDU=","number":5,"title":"get_isomorphism assertion error","user":{"login":"xia0pin9","id":3361271,"node_id":"MDQ6VXNlcjMzNjEyNzE=","avatar_url":"https://avatars0.githubusercontent.com/u/3361271?v=4","gravatar_id":"","url":"https://api.github.com/users/xia0pin9","html_url":"https://github.com/xia0pin9","followers_url":"https://api.github.com/users/xia0pin9/followers","following_url":"https://api.github.com/users/xia0pin9/following{/other_user}","gists_url":"https://api.github.com/users/xia0pin9/gists{/gist_id}","starred_url":"https://api.github.com/users/xia0pin9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xia0pin9/subscriptions","organizations_url":"https://api.github.com/users/xia0pin9/orgs","repos_url":"https://api.github.com/users/xia0pin9/repos","events_url":"https://api.github.com/users/xia0pin9/events{/privacy}","received_events_url":"https://api.github.com/users/xia0pin9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-03T16:11:55Z","updated_at":"2018-08-12T06:55:34Z","closed_at":null,"author_association":"NONE","body":"I encountered another assertion error when using graphlet_sampling kernel.\r\n\r\n```\r\n  File \"/usr/local/lib/python2.7/site-packages/grakel/graph_kernels.py\", line 386, in fit_transform\r\n    K = self.kernel_.fit_transform(X)\r\n  File \"/usr/local/lib/python2.7/site-packages/grakel/kernels/graphlet_sampling.py\", line 300, in fit_transform\r\n    self.fit(X)\r\n  File \"/usr/local/lib/python2.7/site-packages/grakel/kernels/kernel.py\", line 123, in fit\r\n    self.X = self.parse_input(X)\r\n  File \"/usr/local/lib/python2.7/site-packages/grakel/kernels/graphlet_sampling.py\", line 417, in parse_input\r\n    if self._graph_bins[k].isomorphic(sg):\r\n  File \"grakel/kernels/_isomorphism/bliss.pyx\", line 365, in grakel.kernels._isomorphism.bliss.Graph.isomorphic\r\n  File \"grakel/kernels/_isomorphism/bliss.pyx\", line 361, in grakel.kernels._isomorphism.bliss.Graph.get_isomorphism\r\nAssertionError\r\n```\r\n\r\nLooks like the error was raised within bliss library. For GraKeL, maybe an easy fix is to catch the error of the following conditional check code `if self._graph_bins[k].isomorphic(sg):`"},"comment":{"url":"https://api.github.com/repos/ysig/GraKeL/issues/comments/412322853","html_url":"https://github.com/ysig/GraKeL/issues/5#issuecomment-412322853","issue_url":"https://api.github.com/repos/ysig/GraKeL/issues/5","id":412322853,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjMyMjg1Mw==","user":{"login":"ysig","id":28439529,"node_id":"MDQ6VXNlcjI4NDM5NTI5","avatar_url":"https://avatars3.githubusercontent.com/u/28439529?v=4","gravatar_id":"","url":"https://api.github.com/users/ysig","html_url":"https://github.com/ysig","followers_url":"https://api.github.com/users/ysig/followers","following_url":"https://api.github.com/users/ysig/following{/other_user}","gists_url":"https://api.github.com/users/ysig/gists{/gist_id}","starred_url":"https://api.github.com/users/ysig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysig/subscriptions","organizations_url":"https://api.github.com/users/ysig/orgs","repos_url":"https://api.github.com/users/ysig/repos","events_url":"https://api.github.com/users/ysig/events{/privacy}","received_events_url":"https://api.github.com/users/ysig/received_events","type":"User","site_admin":false},"created_at":"2018-08-12T06:55:34Z","updated_at":"2018-08-12T06:55:34Z","author_association":"OWNER","body":"There was an error inside my modification of the bliss.pyx namely that the [`__lt__`](https://github.com/ysig/GraKeL/blob/develop/grakel/kernels/_isomorphism/bliss.pyx#L44) function on kernels was not implemented correctly. A general correction was applied in graphlet sampling [four days before you posted your issue](https://github.com/ysig/GraKeL/blame/d205195decabdc176c5d7eea875213d8eac63340/grakel/kernels/_isomorphism/bliss.pyx#L44) so please install the latest `grakel` from the repository.\r\n\r\nThanks a lot for the feedback."}}
{"actor":{"display_login":"ysig"}}