mlpy.knowledgerep.cbr.similarity.NeighborSimilarity.compute_similarity¶
-
NeighborSimilarity.
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.neighbors.NearestNeighbors
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.