mlpy.knowledgerep.cbr.similarity.KMeansSimilarity.compute_similarity

KMeansSimilarity.compute_similarity(data_point)[source]

Computes the similarity.

Computes the similarity between the data point and the data in the indexing structure using the sklearn.cluster.KMeans clustering algorithm. The results are returned in a collection of similarity statistics (Stat).

Parameters:

data_point : list[float]

The raw data point to compare against the data points stored in the indexing structure.

Returns:

list[Stat] :

A collection of similarity statistics.