specless.strategy
Strategy module
This module contains the base classes for all strategy classes.
Classes
- Strategy
Base class for all strategy classes.
- FeedbackStrategy
Base class for all feedback strategy classes.
- FeedforwardStrategy
Base class for all feedforward strategy classes.
- MemorylessStrategy
Base class for all memoryless strategy classes.
- HistoryDependentStrategy
Base class for all history-dependent strategy classes.
- PlanStrategy
Plan strategy class.
- PolicyStrategy
Policy strategy class.
- CombinedStrategy
Combined strategy class.
Examples
>>> from specless.strategy import PlanStrategy
>>> plan = [0, 1, 2, 3]
>>> strategy = PlanStrategy(plan)
>>> state = 0 # Anything is fine.
>>> action = strategy.action(state)
>>> print(action)
0
>>> action = strategy.action(state)
>>> print(action)
1
>>> action = strategy.action(state)
>>> print(action)
2
>>> action = strategy.action(state)
>>> print(action)
3
Classes
Combined strategy class. |
|
Base class for all feedback strategy classes |
|
Base class for all feedforward strategy classes. |
|
Base class for all history-dependent strategy classes. |
|
Base class for all memoryless strategy classes. |
|
Plan strategy class. |
|
Policy strategy class. |
|
Base class for all strategy classes |