mlpy.knowledgerep.cbr.methods.DefaultRetentionMethod.execute

DefaultRetentionMethod.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.