mlpy.mdp.continuous.casml.CASML.fit¶
-
CASML.
fit
(obs, actions, n_init=1, **kwargs)[source]¶ -
The model is fit to the observations and actions of the trajectory by updating the case base and the HMM.
Parameters: obs : array_like, shape (nfeatures, n)
Trajectory of observations, where each observation has nfeatures features and n is the length of the trajectory.
actions : array_like, shape (nfeatures, n)
Trajectory of actions, where each action has nfeatures features and n is the length of the trajectory.
n_init : int, optional
Number of restarts to prevent the HMM from getting stuck in a local minimum. Default is 1.