mlpy.knowledgerep.cbr.methods.DefaultRetentionMethod

class mlpy.knowledgerep.cbr.methods.DefaultRetentionMethod(max_error=None)[source]

Bases: mlpy.knowledgerep.cbr.methods.IRetentionMethod

The default retention method implementation called from the case base.

When the new problem-solving experience can be stored or not stored in memory, depending on the revision outcomes and the case base reasoning policy regarding case retention.

Parameters:

max_error : float

The maximum permitted error.

Notes

The default retention method adds the new experience only if the query case is within the maximum permitted error of the most similar solution case:

d(\text{case}, \text{solution}[0]) < \text{max\_error}.

Methods

execute(case, case_matches[, fn_add]) Execute retention step.
plot_data(case, case_matches, **kwargs) Plot the data.