Closed DirkWuerdemann closed 3 years ago
does your problem solved?
you may try install scikit-learn
hi guys, thx for the hint. In the meantime my problem is solved. After a complete retaining it works. thx again Dirk
how do you solve it
hi guys, thx for the hint. In the meantime my problem is solved. After a complete retaining it works. thx again Dirk
Hi Benjamin, i have deletet the knn file and done a new training run. Than it works. Dirk
sklearn.neighbors.classification was renamed to sklearn.neighbors._classification in version 0.22.X
Downgrade to scikit-learn version <= 0.21.3 to fix this problem
A little late to the party here, but I am having a similar problem, so I'll leave this for posterity purposes.
I'm trying to load an older Scikit-Learn KNN classifier model with pickle, but it's throwing the error:
No module named 'sklearn.neighbors.classification'
, despite the fact that I have the latest version of scikit-learn installed and imported.
Since I am working with older code, I suspected this to be a version compatibility problem. So I did a little digging, and apparently scikit-learn changed the name of their file /sklearn/neighbors/classification.py
to /sklearn/neighbors/_classification.py
in version 0.22.X (See version 0.21.X in comparison)
So I downgraded my scikit-learn installation to 0.21.3, which successfully fixed the problem.
sklearn.neighbors.classification was renamed to sklearn.neighbors._classification in version 0.22.X Downgrade to scikit-learn version <= 0.21.3 to fix this problem
A little late to the party here, but I am having a similar problem, so I'll leave this for posterity purposes.
I'm trying to load an older Scikit-Learn KNN classifier model with pickle, but it's throwing the error:
No module named 'sklearn.neighbors.classification'
, despite the fact that I have the latest version of scikit-learn installed and imported.Since I am working with older code, I suspected this to be a version compatibility problem. So I did a little digging, and apparently scikit-learn changed the name of their file
/sklearn/neighbors/classification.py
to/sklearn/neighbors/_classification.py
in version 0.22.X (See version 0.21.X in comparison)So I downgraded my scikit-learn installation to 0.21.3, which successfully fixed the problem.
Thanks ! It worked
Thx ! My problem is " No module named 'sklearn.neighbors._classification'" . It also worked .
Description
The pickle.load does not work. It gives the error message that their is No module named 'sklearn.neighbors.classification'
What I Did
I am using the example code