octopus-platform / joern-tools

Python utilities for joern
GNU General Public License v3.0
35 stars 16 forks source link

EmbeddingLoader.py dependency #3

Closed hahnakane closed 10 years ago

hahnakane commented 10 years ago

When finding the nearest neighbor in the VLC tutorial, I execute the following example:

joern-list-funcs -p VLCEyeTVPluginInitialize | awk -F "\t" '{print $2}' | joern-knn

An ImportError arises stating that there is no module named "sklearn.datasets":

    "from sklearn.datasets import load_svnmlight_file"

I thought the only dependency for joern-tools was pygraphviz.

After downloading scikit-learn v0.15.1 to provide the module "sklearn.datasets", I'm presented with the error in _svmlight_format.c line 2505, "ValueError: Feature indices in SVMlight/LibSVM data file should be sorted and unique.

Which version of scikit is being used for sklearn.datasets?