mlpy.knowledgerep.cbr.similarity.ExactMatchSimilarity.build_indexing_structure¶
-
ExactMatchSimilarity.
build_indexing_structure
(data, id_map)[source]¶ Build the indexing structure.
To determine exact matches a brute-force algorithm is used thus the data remains as is and no special indexing structure is implemented.
Parameters: data : ndarray[ndarray[float]]
The raw data points to be indexed.
id_map : dict[int, int]
The mapping from the data points to their case ids.
.. todo::
It might be worth looking into a more efficient way of determining exact matches.