Comments (3)
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.
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.
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)
- Print <class 'grakel.graph.Graph'>
- The Weisfeiler-Lehman Edge Kernel
- fetch_dataset not working HOT 1
- Graph hopper kernel unable to transfom the data
- Edge labels not working for custom dataset HOT 1
- Fingerprint dataset not accessible using fetch_dataset function HOT 13
- NaN error when using Random walk kernel on certain datasets HOT 3
- I don't know how to use my own data for input HOT 5
- MultiDiGraph: graph_from_networkx() ValueError HOT 1
- modified random walk kernel giving all 1 scores for normalize=true HOT 1
- Difference between ShortestPath and ShortestPathAttr HOT 2
- Generating graphs from dense/numpy matrices HOT 1
- Graph.clone() or Graph.copy() HOT 3
- Explicit graph kernels HOT 2
- Graphlet kernel HOT 1
- NeighborhoodSubgraphPairwiseDistance kernel returns diagonal elements less than 1 HOT 5
- One vs many comparison for WeisfeilerLehman; `.transform` gives `TypeError: each element of X must have either a graph with...` HOT 1
- RWK matrix returns by fit_transform by RandomWalkLabeled() contains only 1.0 HOT 7
- Error when using EdgeHistogram HOT 1
- Can't install on Windows 10, keep getting same error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grakel.