mpcrl.core.exploration.NoExploration#
- class mpcrl.core.exploration.NoExploration[source]#
Bases:
ExplorationStrategyStrategy where no exploration is allowed at any time or, in other words, the policy is always deterministic (only based on the current state, and not perturbed).
Notes
This is a special kind of
ExplorationStrategy, the only one without anyhookandmode.Methods
Computes whether, according to the exploration strategy, the agent should explore or not now, at the current instant.
perturbation(*args, **kwargs)Returns a random perturbation.
reset([_])Resets the exploration status, in case it is non-deterministic.
step(*_, **__)Does nothing, since no exploration is allowed.
Attributes
Returns
None, since no exploration is allowed.Returns
None, since no exploration is allowed.- can_explore()[source]#
Computes whether, according to the exploration strategy, the agent should explore or not now, at the current instant.
- Returns:
- bool
Trueif the agent should explore according to this strategy; otherwise,False.
- Return type: