No, it's not applicable to KMeans. There are related algorithms that support custom metrics, e.g. K Medoids (a pull request to scikit-learn is here https://github.com/scikit-learn/scikit-learn/pull/7694 but implementations exist in other libraries). Cheers, Joel
_______________________________________________ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn