|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iastate.jrelm.rl.bushmosteller.GBMParameters
edu.iastate.jrelm.rl.bushmosteller.LinearGBMParameters
public class LinearGBMParameters
An implementation of AbstractGBMParmaters that specifies a linear function for the reinforcement strength modifier used in Generalised Bush-Mosteller learning. Specifically, v(r) = v * r. In this class, v is designated as the 'multiplier value' and is accessed via getMultiplierValue() and setMultiplierValue(double).
Note, in Generalised Bush-Mosteller learning, the feedback modifier function is constrained so that v(0) = 0 and 0 <= v(r) <= 1. This means the multiplier value v in v(r) = v * r must be chosen such that (v * r_min) >= 0 and (v * r_max) <= 1, where r_min and r_max are the minimum and maximum expected values for reinforcement strengths.
If you wish to use LinearGMBParameters to check that the current setting for the multiplier value v is valid, you must first set the min and max expected reinforcement strengths through setFeedbackRange(min, max).
Field Summary | |
---|---|
static double |
DEFAULT_LINEAR_MULTIPLIER
|
static double |
DEFAULT_MAX_EXPECTED_STRENGH
|
static double |
DEFAULT_MIN_EXPECTED_STRENGH
|
Constructor Summary | |
---|---|
LinearGBMParameters()
Default constructor. |
|
LinearGBMParameters(double multiplierValue,
double minExpectedStrength,
double maxExpectedStrength)
Construct a new LinearGBMParameters with the given linear multiplier, minimum expected strength and maximum expected stregth. |
Method Summary | |
---|---|
double |
feedbackModifier(double reinforcementStrength)
Bush-Mosteller learning uses a function v(r) in updating action choice selection probabilities. |
double |
getMaxExpectedFeedback()
|
double |
getMinExpectedFeedback()
|
double |
getMultiplierValue()
Retrieve the current setting for the multiplier value v used in the feedback modifier function v(r) = v * r. |
java.lang.String |
getName()
Get the name of the algorithm these parameters are for. |
java.lang.String[] |
getParameterNames()
Get a the names of the parameters |
void |
setFeedbackRange(double minimum,
double maximum)
Set the range of expected reinforcement strength values. |
void |
setMultiplierValue(double newValue)
Set the current multiplier value v used in the feedback modifier function v(r) = v * r. |
boolean |
validateParameters()
Other methods |
Methods inherited from class edu.iastate.jrelm.rl.bushmosteller.GBMParameters |
---|
getRandomSeed, setRandomSeed |
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_LINEAR_MULTIPLIER
public static final double DEFAULT_MIN_EXPECTED_STRENGH
public static final double DEFAULT_MAX_EXPECTED_STRENGH
Constructor Detail |
---|
public LinearGBMParameters()
public LinearGBMParameters(double multiplierValue, double minExpectedStrength, double maxExpectedStrength)
multiplierValue
- minExpectedStrength
- maxExpectedStrength
- Method Detail |
---|
public double feedbackModifier(double reinforcementStrength)
GBMParameters
feedbackModifier
in class GBMParameters
public boolean validateParameters()
validateParameters
in interface RLParameters
validateParameters
in class GBMParameters
public double getMultiplierValue()
public void setMultiplierValue(double newValue)
public void setFeedbackRange(double minimum, double maximum)
public double getMinExpectedFeedback()
public double getMaxExpectedFeedback()
public java.lang.String getName()
RLParameters
getName
in interface RLParameters
getName
in class GBMParameters
public java.lang.String[] getParameterNames()
RLParameters
getParameterNames
in interface RLParameters
getParameterNames
in class GBMParameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |