NoExploration<T>

Models & Types · AiDotNet.ReinforcementLearning.Policies.Exploration

No exploration - always use the policy’s action directly (greedy).

Inheritance: ExplorationStrategyBase<T> → NoExploration<T>

Example

var random = new Random(42);
var state = new Vector<double>(new double[] { 0.1, -0.4, 0.7, 0.2 });
// Create a no-exploration strategy that always uses the greedy action
var exploration = new NoExploration<double>();
            
// Returns the policy action unchanged (pure exploitation)
var policyAction = new Vector<double>(new double[] { 0.0, 1.0, 0.0 });
var action = exploration.GetExplorationAction(state, policyAction, actionSpaceSize: 3, random);

Constructors

Constructor Summary
NoExploration()

Methods

Method Summary
Vector<T> GetExplorationAction(Vector<T> state, Vector<T> policyAction, int actionSpaceSize, Random random)
void Reset()
void Update()