Neither one of these added metrics has been added to the mini batch kmeans at this point.
Added distance metric selection capability to kmeans._labels_inertia.…
… Current available metrics are L1 and L2 norm.
Added test to check labels assignment and inertia for L1 norm.
Made test for labels assignment and inertia for L1 norm pass.
Added implementations of L1 norm distance computations for dense and …
Added a function to compute the cluster centers when using the L1 nor…
…m (the median of the datapoints in the cluster)).
Added metric selection to sklearn.cluster.KMeans
Added cosine distance measure to KMeans. This just normalises the X v…
…ectors to have unit length before they are passed to the k_means function.
Added a check to _k_init that ignores x_squared_norms if the metric i…
…s set the L1 norm.
Minor editing to comments.
Added 'metric' field to function docstrings in cluster.k_means
Fixed an error with _assign_empty_clusters in sklearn.cluster._k_mean…
…s.pyx where the datatype of n_samples_in_cluster was wrong and the dimensionality of distances was wrong.
Fixed a massive performance issue in _k_means._assign_labels_csr_L1
Added tests for 'L1-norm' and 'cosine distance' metrics for kmeans. T…
…ests currently do not pass.
Made tests for L1-norm and cosine distance pass for KMeans.