mlpy.mdp.IMDPModel.fit

IMDPModel.fit(obs, actions, **kwargs)[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.

kwargs: dict, optional

Non-positional parameters, optional

Raises:

NotImplementedError

If the child class does not implement this function.

Notes

This is an abstract method and must be implemented by its deriving class.