Skip to content
This repository was archived by the owner on Jul 10, 2021. It is now read-only.
This repository was archived by the owner on Jul 10, 2021. It is now read-only.

Help Wanted! ModuleNotFoundError: No module named 'sklearn.cross_validation' #240

@marctheshark3

Description

@marctheshark3

I am using most up to data Mac OS. Not sure where I am going wrong. pip and numpy are both up to date. Also when I try the command suggested:

" nosetests -v sknn "

for the test it gives me these errors:

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/imp.py", line 245, in load_module
return load_package(name, filename)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/imp.py", line 217, in load_package
return _load(spec)
File "", line 684, in _load
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sknn/tests/init.py", line 1, in
from sknn.backend import lasagne
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sknn/backend/lasagne/init.py", line 5, in
from .mlp import MultiLayerPerceptronBackend
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sknn/backend/lasagne/mlp.py", line 22, in
import sklearn.cross_validation
ModuleNotFoundError: No module named 'sklearn.cross_validation'


Ran 1 test in 0.005s

FAILED (errors=2)

I also used the optional method with no luck

So if someone could help me out so I can use scikit-neuralnetwork.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions