mlpy.mdp.continuous.casml.CbTReuseMethod¶
-
class
mlpy.mdp.continuous.casml.
CbTReuseMethod
(owner, rho=None, plot_reuse=None, plot_reuse_params=None)[source]¶ Bases:
mlpy.knowledgerep.cbr.methods.IReuseMethod
The reuse method for the transition case base implementation for
CASML
.The solutions of the best (or set of best) retrieved cases are used to construct the solution for the query case; new generalizations and specializations may occur as a consequence of the solution transformation.
The CASML reuse method for the transition case base further specializes the solution by identifying cases similar in both state and action.
Parameters: owner : CaseBase
A pointer to the owning case base.
rho : float, optional
The permitted error of the similarity measure. Default is 0.99.
plot_reuse : bool, optional
Whether to plot the vision step or not. Default is False.
plot_reuse_params : {‘origin_to_query’, ‘original_origin’}
Parameters used for plotting. Valid parameters are:
- origin_to_query
Which moves the origins of all actions to the query case’s origin.
- original_origin
The origins remain unchanged and the states are plotted at their original origins.
Notes
The CASML reuse method for the transition case base further narrows down the solutions to the query case by identifying whether the actions are similar by ensuring that the actions are cosine similar within the permitted error :
Methods
execute
(case, case_matches)Execute reuse step. plot_data
(case, case_matches, **kwargs)Plot the data during the revision step.