public class BoltzmannExploration extends java.lang.Object implements IExplorationPolicy
exp( Q( s, a ) / t )
p( s, a ) = -----------------------------
SUM( exp( Q( s, b ) / t ) )
b
| Constructor and Description |
|---|
BoltzmannExploration(double temperature)
Initializes a new instance of the BoltzmannExploration class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
ChooseAction(double[] actionEstimates)
The method chooses an action depending on the provided estimates.
|
double |
getTemperature()
If temperature is low, then the policy tends to be more greedy.
|
void |
setTemperature(double temperature)
The property sets the balance between exploration and greedy actions.
|
public BoltzmannExploration(double temperature)
temperature - Temperature parameter of Boltzmann distribution.public double getTemperature()
public void setTemperature(double temperature)
temperature - Temperaturepublic int ChooseAction(double[] actionEstimates)
ChooseAction in interface IExplorationPolicyactionEstimates - Action Estimates.