Please help, after importing the library output error in google colab notebook/kaggle notebook/ local jupiter notebook #19446
Replies: 9 comments
-
ImportError Traceback (most recent call last) ImportError: cannot import name 'SelfTrainingClassifier' from 'sklearn.semi_supervised' (/opt/conda/lib/python3.7/site-packages/sklearn/semi_supervised/init.py) |
Beta Was this translation helpful? Give feedback.
-
SelfTrainingClassifier is available starting from version 0.24. You might need to update scikit-learn. |
Beta Was this translation helpful? Give feedback.
-
It doesn't work |
Beta Was this translation helpful? Give feedback.
-
these libraries are run without problems : semi_supervised.LabelPropagation |
Beta Was this translation helpful? Give feedback.
-
Please run |
Beta Was this translation helpful? Give feedback.
-
System: Python dependencies: Built with OpenMP: True |
Beta Was this translation helpful? Give feedback.
-
even after installation, the version is old Requirement already satisfied: scikit-learn==0.24.1 in /usr/local/lib/python3.6/dist-packages (0.24.1) |
Beta Was this translation helpful? Give feedback.
-
@TrusovOleg 99% chance that this is a problem on your end. Possible explanations:
Good post by Jake van der Plas on this: https://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/#The-Details:-Why-is-Installation-from-Jupyter-so-Messy? |
Beta Was this translation helpful? Give feedback.
-
I am going to move this to a Github Discussion, because this is with super-high probability not a bug in scikit-learn. |
Beta Was this translation helpful? Give feedback.
-
Example:
from sklearn.semi_supervised import SelfTrainingClassifier
Beta Was this translation helpful? Give feedback.
All reactions