mlpy.mdp.discrete.ExplorerFactory.create

static ExplorerFactory.create(_type, *args, **kwargs)[source]

Create an MDP model of the given type.

Parameters:

_type : str

The model explorer type. Valid model types:

leastvisitedbonusexplorer:

In least-visited-bonus exploration mode, the states that have been visited the least are given a bonus of RMax. A LeastVisitedBonusExplorer instance is create.

unknownbonusexplorer:

In unknown-bonus exploration mode states for which the decision tree was unable to predict a reward are considered unknown and are given a bonus of RMax. A UnknownBonusExplorer instance is create.

args : tuple, optional

Positional arguments to pass to the class of the given type for initialization.

kwargs : dict, optional

Non-positional arguments to pass to the class of the given type for initialization.

Returns:

RMaxExplorer :

An explorer instance of the given type.