Is it possible to specify your own distance function using scikit-learn K-Means Clustering?
Sklearn Kmeans uses the Euclidean distance. It has no metric parameter. This said, if you're clustering time series, you can use the tslearn python package, when you can specify a metric (dtw, softdtw, euclidean).
Is it possible to specify your own distance function using scikit-learn K-Means Clustering?