mlpy.planners.explorers.ExplorerFactory.create

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

Create an explorer of the given type .

Parameters:

_type : str

The explorer type. Valid explorer types:

egreedyexplorer

With \epsilon probability, a random action is chosen, otherwise the action resulting in the highest q-value is selected. An EGreedyExplorer is created.

softmaxexplorer

The softmax explorer varies the action probability as a graded function of estimated value. The greedy action is still given the highest selection probability, but all the others are ranked and weighted according to their value estimates. A SoftmaxExplorer is created.

args : tuple

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

kwargs : dict

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

Returns:

IExplorer :

An explorer instance of the given type.