Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_isomorphism assertion error #5

Closed
xia0pin9 opened this issue Aug 3, 2018 · 1 comment
Closed

get_isomorphism assertion error #5

xia0pin9 opened this issue Aug 3, 2018 · 1 comment

Comments

@xia0pin9
Copy link

xia0pin9 commented Aug 3, 2018

I encountered another assertion error when using graphlet_sampling kernel.

  File "/usr/local/lib/python2.7/site-packages/grakel/graph_kernels.py", line 386, in fit_transform
    K = self.kernel_.fit_transform(X)
  File "/usr/local/lib/python2.7/site-packages/grakel/kernels/graphlet_sampling.py", line 300, in fit_transform
    self.fit(X)
  File "/usr/local/lib/python2.7/site-packages/grakel/kernels/kernel.py", line 123, in fit
    self.X = self.parse_input(X)
  File "/usr/local/lib/python2.7/site-packages/grakel/kernels/graphlet_sampling.py", line 417, in parse_input
    if self._graph_bins[k].isomorphic(sg):
  File "grakel/kernels/_isomorphism/bliss.pyx", line 365, in grakel.kernels._isomorphism.bliss.Graph.isomorphic
  File "grakel/kernels/_isomorphism/bliss.pyx", line 361, in grakel.kernels._isomorphism.bliss.Graph.get_isomorphism
AssertionError

Looks 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):

@ysig
Copy link
Owner

ysig commented Aug 12, 2018

There was an error inside my modification of the bliss.pyx namely that the __lt__ function on kernels was not implemented correctly. A general correction was applied in graphlet sampling four days before you posted your issue so please install the latest grakel from the repository.

Thanks a lot for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants