Skip to content
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.tree.tree' #92

Open
hrrm2007 opened this issue Jul 17, 2023 · 2 comments
Open

ModuleNotFoundError: No module named 'sklearn.tree.tree' #92

hrrm2007 opened this issue Jul 17, 2023 · 2 comments

Comments

@hrrm2007
Copy link

hrrm2007 commented Jul 17, 2023

Porter.py incorrect❗

....
from sklearn.metrics import accuracy_score
from sklearn.tree.tree import DecisionTreeClassifier
from sklearn.ensemble.weight_boosting import AdaBoostClassifier
from sklearn.ensemble.forest import RandomForestClassifier
from sklearn.ensemble.forest import ExtraTreesClassifier
....

Porter.py correct✔

from sklearn.metrics import accuracy_score
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.svm import LinearSVC
from sklearn.svm import SVC
from sklearn.svm import NuSVC
from sklearn.neighbors import KNeighborsClassifier
from sklearn.naive_bayes import GaussianNB
from sklearn.naive_bayes import BernoulliNB

@hrrm2007
Copy link
Author

f**k your package , it has lots of errors😂. please debug your package

@vladBaciu
Copy link

The problem is with the version of sklearn you are using. No one is forcing you to use this package anyway. Create your own from scratch. I'd be glad to see how you do it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants