|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iastate.jrelm.rl.rotherev.REParameters
public class REParameters
Collects and manages parameters settings required for the modified Roth-Erev reinforcement learning algorithm. Roth-Erev learning parameters: Experiementation: --explaination pending-- Note: Be careful not to choose value e where (1-e) == e / (N - 1), where N is the size of the action domain (i.e. e == 0.75 and N == 4). This will result in all action propensities receiving the same experience update value, regardless of the last action chosen. Action choice probabilities will then remain uniform and no learning will occur. Initial Propensity: --explaination pending-- Recency: --explaination pending-- Additional parameters:
Field Summary | |
---|---|
static double |
DEFAULT_BOLTZMANN
|
static double |
DEFAULT_EXPERIMENTATION
|
static double |
DEFAULT_INIT_PROPENSITY
|
static double |
DEFAULT_RECENCY
|
Constructor Summary | |
---|---|
REParameters()
This is meant solely as a convenience constructor. |
|
REParameters(double experimentation,
double initialPropensity,
double recency)
Build a VREParameters object with the given learning parameter values. |
|
REParameters(double boltzmannTemp,
double experimentation,
double initialPropensity,
double recency)
Build a VREParameters object with the given learning parameter values. |
|
REParameters(double boltzmannTemp,
double experimentation,
double initialPropensity,
double recency,
int randSeed)
Additional parameters. |
Method Summary | |
---|---|
double |
getBoltzmannTemp()
|
double |
getExperimentation()
|
double |
getInitialPropensity()
|
java.lang.String |
getName()
Get the name of the algorithm these parameters are for. |
java.util.Hashtable |
getParameterDescriptors()
|
java.lang.String[] |
getParameterNames()
Get the names of the parameters |
int |
getRandomSeed()
Get the seed for the RandomEngine used in the REPolicy. |
double |
getRecency()
|
void |
setBoltzmannTemp(double bTemp)
|
void |
setExperimentation(double e)
|
void |
setInitialPropensity(double initProp)
|
void |
setRandomSeed(int randSeed)
Set the seed to be used with the RandomEngine used in MREPolicy |
void |
setRecency(double r)
|
boolean |
useBoltzmann()
Indicate whether to use the Gibbs-Boltzmann probability distribution or default to the proportional distribution. |
boolean |
validateParameters()
Checks to make sure the current values for all parameters are valid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_BOLTZMANN
public static final double DEFAULT_EXPERIMENTATION
public static final double DEFAULT_INIT_PROPENSITY
public static final double DEFAULT_RECENCY
Constructor Detail |
---|
public REParameters()
public REParameters(double experimentation, double initialPropensity, double recency)
experimentation
- -recency
- -initialPropensity
- public REParameters(double boltzmannTemp, double experimentation, double initialPropensity, double recency)
boltzmannCooling
- experimentation
- -initialPropensity
- recency
- -public REParameters(double boltzmannTemp, double experimentation, double initialPropensity, double recency, int randSeed)
boltzmannCooling
- experimentation
- initialPropensity
- numberOfActions
- recency
- randSeed
- Method Detail |
---|
public boolean validateParameters()
RLParameters
validateParameters
in interface RLParameters
edu.iastate.jrelm.core.ai.learning.rl.RLParameters#validateParameters()
public boolean useBoltzmann()
public double getBoltzmannTemp()
public void setBoltzmannTemp(double bTemp)
bTemp
- Sets the value of the scaling paremeter.public double getExperimentation()
public void setExperimentation(double e)
public double getInitialPropensity()
public void setInitialPropensity(double initProp)
public java.lang.String getName()
RLParameters
getName
in interface RLParameters
public double getRecency()
public void setRecency(double r)
recency
- Sets the value of the recency parameter.public int getRandomSeed()
getRandomSeed
in interface RLParameters
REPolicy
,
RandomEngine
public void setRandomSeed(int randSeed)
randSeed
- - seed valuepublic java.lang.String[] getParameterNames()
getParameterNames
in interface RLParameters
public java.util.Hashtable getParameterDescriptors()
getParameterDescriptors
in interface uchicago.src.reflector.DescriptorContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |