specless.strategy.PolicyStrategy

class specless.strategy.PolicyStrategy[source]

Bases: MemorylessStrategy

Policy strategy class. It takes an action given an observed state.

Methods

action

Get the action for the policy strategy given the state.

reset

Reset the feedback strategy.

action(state: ObsType) ActType[source]

Get the action for the policy strategy given the state.

Parameters:

state (ObsType) – The state for which to get the action.

Returns:

The action for the policy strategy.

Return type:

ActType

Raises:

NotImplementedError – If the method is not implemented in a subclass.

reset() None

Reset the feedback strategy.

Raises:

NotImplementedError – If the method is not implemented in a subclass.