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.
scikit-learn 0.21.3
tslearn 0.4.1
Reference
pip install -U scikit-learn
It worked safely.
↓ Updated version
scikit-learn 0.23.1
Recommended Posts