|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eyelanguage.rl.reading.ReadingMain
public class ReadingMain
A class configured by a textfile called "reading.prop" that can be run from the command line to initiate a reinforcement learning simulation on a reading problem; all variables below can be specified in the reading.prop file, e.g. saccadicError = true
| Field Summary | |
|---|---|
protected int |
acuityLimit
The maximum allowed distance in the state space between fovea and center of attention. |
protected boolean |
acuityLinearPenalize
reading.prop parameter: If true, one extra timestemp of processing is required for each character space from the center of the word being processed for word identification. |
protected int |
acuityLinearPenaltySlope
Amount of cost added per character eccentricity for linear acuity penalty. |
protected int |
agentParallelNumThreads
reading.prop parameter |
protected java.lang.String |
agentType
reading.prop parameter |
protected java.lang.String |
aidTimes
Specified the amount of time it will take the agent to recognize each word, if that word if foveated in its center. |
protected boolean |
ALLOW_SIMULTANEOUS_ATTNEXT_AND_IDENT
Specifies in generic policy if attention shifts and word identification can occur at the same time. |
protected boolean |
ALLOW_SIMULTANEOUS_SACREQ_AND_ATTNEXT
Specifies in generic policy if saccade request actions and attention shift actions can occur at the same time. |
protected java.lang.String |
attention
reading.prop parameter: Serial attention means attend one word at a time, semiparallel means multiple but with a serial sliding window, and parallel means fully parallel processing of words in any order. |
protected boolean |
bitPacker
reading.prop parameter |
protected int |
boundedBufferSize
reading.prop parameter |
protected int |
centerOfAttention
If attention is not serial, The number of words the agent can attend (process lexically) in parallel to the left of attention focus. |
protected double |
defaultReinforcement
reading.prop parameter |
protected double |
discountFactor
Represents how much future reward is weighted in comparison to the immediate reward. |
protected boolean |
distributedJavaParty
reading.prop parameter |
protected boolean |
DYNAMICALLY_LOAD_VALUE_FUNCTION_PATCHES
Affect PolicyExtractor to load value functions if the state does not reside in the current value function; if the state does not support SubdivisionIdentification the PolicyExtractor will communicate this. |
protected double |
epsilon
Amount by which to incrementally update current predictions, useful in the face of stochasticity. |
protected double |
greed
This number is used in the TrajectorySampler mode, and specified how likely the agent is to take the best known action. |
protected boolean |
handCraftedVectors
(Experimenal) Engages special handcrafted code for function approximator state vector representation. |
protected int |
hiddenLayerSize
reading.prop parameter |
protected double |
identifyReinforcement
The reward received by the agent when entering a state where the current word is newly identified. |
protected boolean |
incrementalUpdate
Function Approximators: update incrementally (on each input-output mapping) if true, else epoch-wise. |
protected double |
learningRate
Determines the learning rate of the neural network or function approximator that is being used. |
protected java.lang.String |
loadWorldCache
reading.prop parameter |
protected double |
momentum
Determines how recent changes in the neural network or function approximator continue to affect the network. |
protected double |
netOutputRange
For a neural network or function approximator, specifies the meaning of the maximal output and minimal output values. |
protected boolean |
PARALLEL_DIVIDED_ATTENTION_GRADIENT
|
protected boolean |
PARALLEL_LINEAR_ATTENTION_GRADIENT
|
protected boolean |
PARALLEL_UNIFORM_ATTENTION
|
protected int |
parallelAttendableWords
If attention is not serial, The number of words the agent can attend (process lexically) in parallel to the right of attention focus. |
protected java.lang.String |
predictabilities
reading.prop parameter: Space-separated real numbers specifying the predictability of each word, starting with the second word in the sentence? |
protected long |
randomSeed
reading.prop parameter |
protected double |
reachTerminalReinforcement
The reward received by the agent when entering a terminal state. |
protected java.lang.String |
readingStateType
reading.prop parameter |
protected boolean |
residualAlgorithm
reading.prop parameter |
protected double |
residualWeighting
reading.prop parameter |
protected java.lang.String |
rlAlgorithm
reading.prop parameter |
protected int |
saccadeTimePenalty
reading.prop parameter: How much time (negative) should be removed during a saccadic eye movement? |
protected boolean |
saccadicError
reading.prop parameter: True if saccadic motor error should be enabled, false otherwise. |
protected boolean |
saccadicErrorGaussian
reading.prop parameter: Should the Gaussian saccadic error be used -- otherwise, a uniform saccadic error will be used. |
protected double |
saccadicErrorSpread
reading.prop parameter: The amount of "spread" of this particular kind of saccadic error (e.g. |
protected int |
saccPrgTime
Amount of time it takes the agent to program a saccade. |
protected int |
saveNetworkEvery
reading.prop parameter |
protected java.lang.String |
sentence
|
protected java.lang.String |
startState
|
protected boolean |
stateActionCache
reading.prop parameter |
protected boolean |
stateVectorsComplement
reading.prop parameter |
protected boolean |
stateVectorsCrossProduct
reading.prop parameter |
protected int |
testAgentEvery
|
protected java.lang.String |
testAidTimes
reading.prop parameter |
protected Corpus |
testCorpus
|
protected int |
testIterations
reading.prop parameter |
protected java.lang.String |
testPredictabilities
reading.prop parameter |
protected java.lang.String |
testSentence
reading.prop parameter |
protected boolean |
testTrainSameVf
reading.prop parameter |
protected java.lang.String |
testWordLengths
|
protected boolean |
testWordLengthsOverridden
|
protected int |
totalIterations
reading.prop parameter: How many interations to train before stopping and testing. |
protected Corpus |
trainCorpus
|
protected boolean |
updateOnlyWhenGreedy
|
protected java.lang.String |
valueFunctionName
Stores a name in the value function that should correspond to the patch name identifying the patch name; perhaps in the future value function patches should have more than one name. |
protected java.lang.String |
valueFunctionToLoad
reading.prop parameter |
protected java.lang.String |
valueFunctionToSave
reading.prop parameter |
protected double |
valueOfNonStoredStates
|
protected double |
valueOfTerminalStates
reading.prop parameter |
protected java.lang.String |
wordLengths
|
protected boolean |
wordLengthsOverridden
|
protected boolean |
wrapSerialValueFunctionWithParallelAdapter
reading.prop parameter |
| Constructor Summary | |
|---|---|
ReadingMain()
|
|
| Method Summary | |
|---|---|
protected void |
loadProperties()
|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int totalIterations
protected int testAgentEvery
protected boolean incrementalUpdate
protected java.lang.String attention
protected boolean PARALLEL_UNIFORM_ATTENTION
protected boolean PARALLEL_LINEAR_ATTENTION_GRADIENT
protected boolean PARALLEL_DIVIDED_ATTENTION_GRADIENT
protected boolean saccadicError
protected double saccadicErrorSpread
protected boolean acuityLinearPenalize
protected int acuityLinearPenaltySlope
protected int saccadeTimePenalty
protected boolean saccadicErrorGaussian
protected double identifyReinforcement
protected double reachTerminalReinforcement
protected double defaultReinforcement
protected int saccPrgTime
protected int parallelAttendableWords
protected int centerOfAttention
protected int acuityLimit
protected boolean ALLOW_SIMULTANEOUS_SACREQ_AND_ATTNEXT
protected boolean ALLOW_SIMULTANEOUS_ATTNEXT_AND_IDENT
protected boolean DYNAMICALLY_LOAD_VALUE_FUNCTION_PATCHES
protected java.lang.String valueFunctionName
protected java.lang.String sentence
protected java.lang.String predictabilities
protected java.lang.String aidTimes
protected java.lang.String wordLengths
protected boolean wordLengthsOverridden
protected java.lang.String testSentence
protected int testIterations
protected java.lang.String testPredictabilities
protected java.lang.String testAidTimes
protected int hiddenLayerSize
protected java.lang.String testWordLengths
protected boolean testWordLengthsOverridden
protected java.lang.String agentType
protected int agentParallelNumThreads
protected int boundedBufferSize
protected double valueOfTerminalStates
protected boolean testTrainSameVf
protected boolean stateActionCache
protected boolean bitPacker
protected java.lang.String valueFunctionToLoad
protected boolean wrapSerialValueFunctionWithParallelAdapter
protected java.lang.String valueFunctionToSave
protected java.lang.String loadWorldCache
protected boolean distributedJavaParty
protected boolean handCraftedVectors
protected java.lang.String rlAlgorithm
protected double greed
protected double discountFactor
protected double epsilon
protected double learningRate
protected double momentum
protected double netOutputRange
protected int saveNetworkEvery
protected java.lang.String readingStateType
protected long randomSeed
protected double valueOfNonStoredStates
protected java.lang.String startState
protected boolean updateOnlyWhenGreedy
protected boolean residualAlgorithm
protected double residualWeighting
protected boolean stateVectorsCrossProduct
protected boolean stateVectorsComplement
protected Corpus testCorpus
protected Corpus trainCorpus
| Constructor Detail |
|---|
public ReadingMain()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
protected void loadProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||