mlpy.mdp.discrete.DiscreteModel.fit¶
-
DiscreteModel.
fit
(obs, actions, labels=None)[source]¶ Fit the model to the observations and actions of the trajectory.
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.
labels : array_like, shape (n,)
Label identifying each step in the trajectory, where n is the length of the trajectory.