-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'sklearn.neighbors.classification' #76
Comments
I am facing the same issue too. Is anyone able to help? This happens when I am trying to run the s5_test.py script. |
Hi, I managed to rectify it. I think that this happened because the installed version of scikit-learn was a newer one. I first uninstalled scikit-learn: |
I have try pip install scikit-learn==0.20.4, and solved my problem ,thanks @siabingtao |
to install scikit-learn version 0.21.3 is OK |
I'm using scikit-learn1.4 version |
thanks for your reply, I have get a mastor with the help of your work. good luck!
…---Original---
From: ***@***.***>
Date: Mon, Jan 29, 2024 11:18 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [felixchenfy/Realtime-Action-Recognition] ModuleNotFoundError: Nomodule named 'sklearn.neighbors.classification' (Issue #76)
I'm using scikit-learn1.4 version
Without downgrading the version, change sklearn.neighbors.classification in the trained_classifier.pickle of the training model to sklearn.neighbors._classification
Because scikit-learn has been underlined since version 0.22.x.
There are also several underlined ones:
Original: sklearn.tree.tree
Change to: sklearn.tree._classes (needs to be changed to classes here)
Original: sklearn.ensemble.forest
Change to: sklearn.ensemble._forest
Original: sklearn.preprocessing.label
Change to: sklearn.preprocessing._label
etc.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
how to open file :"Training_classifier.pickle". I got this error when running "s5_test.py" . Traceback (most recent call last): |
hello,I met a question about how to open file :"Training_classifier.pickle" and change the pickle.If I just open it in a directly way and change it to sklearn.neighbors._classification,will get the error of _pickle.UnpicklingError: invalid load key, '\xef'.
|
how to solve it?
The text was updated successfully, but these errors were encountered: