mlpy.knowledgerep.cbr.similarity.ISimilarity

class mlpy.knowledgerep.cbr.similarity.ISimilarity[source]

Bases: object

The similarity model interface.

The similarity model keeps an internal indexing structure of the relevant case data to efficiently computing the similarity measure between data points.

Notes

All similarity models must inherit from this class.

Methods

build_indexing_structure(data, id_map) Build the indexing structure.
compute_similarity(data_point) Computes the similarity.