ImportError: cannot import name'_check_sample_weight'

Contents

from tslearn.clustering import TimeSeriesKMeans so, ImportError: cannot import name '_check_sample_weight' I got stuck, so I made a note. Apparently the version of scikit-learn was old.

environment

solution

Reference pip install -U scikit-learn It worked safely. ↓ Updated version scikit-learn 0.23.1

Recommended Posts

ImportError: cannot import name'_check_sample_weight'
ImportError: cannot import name'factorial' ~ ~ ~
ImportError: cannot resolve import name
ImportError: cannot resolve import name
Cannot import name'NUMPY_MKL'Solution.
from scipy.misc If "ImportError: cannot import name imread" occurs in import imread, imresize