mlpy.knowledgerep.cbr.similarity.NeighborSimilarity.build_indexing_structure

NeighborSimilarity.build_indexing_structure(data, id_map)[source]

Build the indexing structure.

Build the indexing structure by fitting the data according to the specified algorithm.

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.