No module named 'sklearn.cluster.k_means_'
dcc88888888 opened this issue · 0 comments
Describe the bug
ModuleNotFoundError Traceback (most recent call last)
/opt/anaconda3/lib/python3.8/site-packages/tslearn/clustering.py in
12 # Most recent
---> 13 from sklearn.cluster._k_means import _k_init
14 except ImportError:
ModuleNotFoundError: No module named 'sklearn.cluster._k_means'
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last)
/var/folders/62/n92tjqpx7j122f_k9b1z1tnw0000gn/T/ipykernel_93125/1246615330.py in
----> 1 from tslearn.clustering import TimeSeriesKMeans
/opt/anaconda3/lib/python3.8/site-packages/tslearn/clustering.py in
14 except ImportError:
15 # Deprecated from sklearn v0.24 onwards
---> 16 from sklearn.cluster.k_means_ import _k_init
17 from sklearn.metrics.cluster import
18 silhouette_score as sklearn_silhouette_score
ModuleNotFoundError: No module named 'sklearn.cluster.k_means_'
To Reproduce
from tslearn.clustering import TimeSeriesKMeans
Environment (please complete the following information):
- OS: [ iOS big sur 11.4]
- tslearn version [0.5.2]