mlpy.knowledgerep.cbr.methods.IRetentionMethod.execute

IRetentionMethod.execute(case, case_matches, fn_add=None)[source]

Execute retention step.

Parameters:

case : Case

The query case.

case_matches : dict[int, CaseMatch]

The solution identified through the similarity measure.

fn_add : callable

Callback for accessing the case base’s ‘add’ method.

Raises:

NotImplementedError

If the child class does not implement this function.