|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.common.GeneralNetComp
clarion.acs.net.AcsNetComp
clarion.acs.net.auxiliary.TLRuleSet
Field Summary | |
protected int |
actionBLAoption
action BLA option: constant or variable. |
protected java.util.TreeMap |
actionUsageInfoTM
action usages info. |
protected java.util.TreeMap |
activationList
the activations of the activated actions. |
protected int |
ALL
|
protected int |
c20
used for MCS's minotoring conclusions. |
protected int |
episodeLength
used for updating stats. |
protected short[] |
exState
current external state. |
protected int |
genMode
generalization mode. |
protected short[] |
gsState
current goal state. |
protected int |
MATCH_BOTH
|
protected int |
MATCH_CONDITION
|
protected int |
MAX_AGE
maximal number of steps withnot applying a rule. |
protected boolean |
partialMatchFlag
partial match flag. |
protected int |
recommendRule
the recommended rule index to the rule list. |
protected short[] |
recommendRules
the recommended rule indices to the rule list. |
protected int |
RULE_NUM
rule # of current rule set, the length of ruleList. |
protected TLRule[] |
ruleList
rule list. |
protected int |
ruleMatchNum
number of rule matched. |
protected java.lang.String[] |
ruleReps
rule representations : MATCH_CONDITION, MATCH_BOTH, ALL. |
protected int |
ruleType
rule type: RER, IRL or FR. |
protected double[] |
ruleUtls
rule utilities used for action decision. |
protected short[] |
state
current state. |
protected double |
SUCC_C3
used for cross combination. |
protected double |
SUCC_C4
used for cross combination. |
protected double |
succRate
used for cross combination. |
protected double |
sumNM
used for cross combination. |
protected double |
sumPM
used for cross combination. |
protected double |
threshold_PM
threshold for partial match. |
protected Chunk[] |
tlResults
results from Top Level. |
protected int |
trialIdx
used for updating stats. |
protected boolean |
UTL_FLAG
utility flag. |
protected short[] |
wmState
current working memory state. |
Fields inherited from class clarion.acs.net.AcsNetComp |
acsAction, CONTROL_OUTPUT_DIM_NUM, CONTROL_OUTPUT_NUM, controlOutputDVs, controlOutputOffsets, FULL_CONTROL_OUTPUT_DIM_NUM, FULL_CONTROL_OUTPUT_NUM, fullControlOutputDVs, fullControlOutputOffsets, fullSuggestedAction, netType, outputFormatDimNums, outputFormatDimValNums |
Fields inherited from class clarion.common.GeneralNetComp |
actionDecider, chosenAction, currentTime, FULL_OUTPUT_DIM_NUM, FULL_OUTPUT_NUM, fullOutputDVs, fullOutputOffsets, global, INPUT_DIM_NUM, INPUT_NUM, inputDVs, inputOffsets, netIdx, OUTPUT_DIM_NUM, OUTPUT_NUM, outputActivations, outputDVs, outputOffsets, responseTime, subsysIdx, suggestedAction, taskClarion, temperature |
Constructor Summary | |
TLRuleSet(int subsysIdx,
int netIdx,
int ruleType,
Global global)
constructor. |
Method Summary | |
void |
calcRT(int TLAT)
Calculates the response time given the actuation time of top level. |
short[][][] |
decideAction()
Returns the recommended action from current rule set. |
Chunk[] |
getAllConclusions()
Returns all conclusions decided by the active rules. |
java.lang.String |
getAllRules()
Returns the all rules in terms of strings.. |
java.lang.String |
getMatchConditionRules()
Returns the only condition-matched rules (from the active rules) in terms of strings. |
java.lang.String |
getMatchRules()
Returns the both matched rules (from the active rules) in terms of strings. |
double |
getNM()
Returns the negative matches. |
double[][] |
getOutputActivations()
Converts outputActivations into its full-bottom format since current format is just a subset of the full-bottom format. |
void |
getOutputActivations(double[][] arr)
Returns all the activated actions' activations. |
double |
getPM()
Returns the positive matches. |
int |
getResponseTime(int TLAT)
Returns response time given the actuation time of top level. |
java.lang.String[] |
getRules()
Returns the rules in terms of strings. |
double |
getSuccRate()
Returns the success rate. |
void |
reasoning()
the reasoning process. |
void |
setChosenAction(short[][][] fullAction)
Sets the chosen action. |
void |
setCurrentTime(int curTime)
Sets current time. |
void |
setStates(double[] state,
double[] exState,
double[] gsState,
double[] wmState)
Sets states. |
void |
update(boolean successFlag)
Updates this rule set at each trial with flag indicating current step is successful or not. |
void |
update(double reward)
Updates this rule set at each trial with currently received reinforcement. |
void |
updateActionUsage()
Updates the action usage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int MATCH_CONDITION
protected int MATCH_BOTH
protected int ALL
protected int ruleType
protected TLRule[] ruleList
protected int RULE_NUM
protected int MAX_AGE
protected int genMode
protected boolean partialMatchFlag
protected double threshold_PM
protected boolean UTL_FLAG
protected double[] ruleUtls
protected java.util.TreeMap activationList
protected short[] state
protected short[] exState
protected short[] gsState
protected short[] wmState
protected int c20
protected Chunk[] tlResults
protected int ruleMatchNum
protected int recommendRule
protected short[] recommendRules
protected java.lang.String[] ruleReps
protected double SUCC_C3
protected double SUCC_C4
protected double succRate
protected double sumPM
protected double sumNM
protected int episodeLength
protected int trialIdx
protected int actionBLAoption
protected java.util.TreeMap actionUsageInfoTM
Constructor Detail |
public TLRuleSet(int subsysIdx, int netIdx, int ruleType, Global global)
netIdx
- network index.ruleType
- rule type.Method Detail |
public java.lang.String[] getRules()
public java.lang.String getAllRules()
public java.lang.String getMatchConditionRules()
public java.lang.String getMatchRules()
public double getPM()
getPM
in class GeneralNetComp
public double getNM()
getNM
in class GeneralNetComp
public double getSuccRate()
public double[][] getOutputActivations()
getOutputActivations
in class GeneralNetComp
public void getOutputActivations(double[][] arr)
getOutputActivations
in class GeneralNetComp
arr
- the array to store the activations.
public Chunk[] getAllConclusions()
getAllConclusions
in class AcsNetComp
public int getResponseTime(int TLAT)
getResponseTime
in class GeneralNetComp
public void setChosenAction(short[][][] fullAction)
setChosenAction
in class GeneralNetComp
fullAction
- the full action to fill in the chosen action.public void setStates(double[] state, double[] exState, double[] gsState, double[] wmState)
setStates
in class GeneralNetComp
state
- curent state.exState
- extenal state.gsState
- goal state.wmState
- working memory state.public void setCurrentTime(int curTime)
setCurrentTime
in class GeneralNetComp
curTime
- the time to set.public short[][][] decideAction()
decideAction
in class GeneralNetComp
public void reasoning()
reasoning
in class GeneralNetComp
public void update(boolean successFlag)
update
in class GeneralNetComp
successFlag
- the flag indicating current step is successful or not.public void update(double reward)
update
in class GeneralNetComp
reward
- currently received reinforcement.public void calcRT(int TLAT)
calcRT
in class GeneralNetComp
TLAT
- the actuation time of top level.public void updateActionUsage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |