Code Monkey home page Code Monkey logo

Comments (3)

ysig avatar ysig commented on June 7, 2024

Hi,
you are probably using version 0.1a3 of grakel which is the only currently uploaded to pip.

To display execute pip show grakel-dev

Please install and use the latest version of grakel, namely the one from the repository (I think this error has been fixed around 1 month now).
This is one of many bugfixes that will be uploaded as a version 0.1a4 of grakel to PyPi as soon as we finish a huge experimentation, we are currently conducting on the whole library (from which small errors may be raised to the surface).

Thanks for your understanding.

from grakel.

xia0pin9 avatar xia0pin9 commented on June 7, 2024

Seems 0.1a4 still has this problem.

In [28]: grakel.__version__
Out[28]: '0.1a4'

In [29]: sp_kernel.fit(g0)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-29-43dee3967136> in <module>()
----> 1 sp_kernel.fit(g0)

/usr/local/lib/python2.7/dist-packages/grakel/graph_kernels.pyc in fit(self, X, y)
    315             self.component_indices_ = inds
    316         else:
--> 317             self.kernel.fit(X)
    318
    319         # Return the transformer

AttributeError: 'dict' object has no attribute 'fit'

from grakel.

ysig avatar ysig commented on June 7, 2024

This error has been resolved about a month ago you can see that line 317 has been corrected and when it was resolved by git blame

Please install the latest grakel from the repository.

from grakel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.