|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.nacs.NACS
Field Summary | |
protected AbsEM[] |
absEMs
the AEM components. |
protected int[] |
acsActionDimNums
the numbers of dimensions in ACS action. |
protected int |
acsNetNum
the number of ACS network. |
protected int[] |
acsRewardDimNums
the numbers of dimensions in ACS reward. |
protected int[] |
acsStateDimNums
the numbers of dimensions in ACS state. |
protected int[] |
acsStepFeatNums
the nubmers of dimensions in a step chunk. |
protected int |
activeAmnIdx
the index on the active AMN. |
protected boolean |
aemOn
flag for AEM is on or not. |
protected double |
aemTrainedByEmProb
the probability of EM training AEM. |
protected boolean |
amnMultiFlag
flag for allowing multiple active AMN or not. |
protected AMNet[] |
amns
the AMN component. |
protected short[][] |
conditionDimInfo
used to compose condition chunks. |
protected Feature[] |
curAction
current action in format of an array of features. |
protected Feature[] |
curState
current state in format of an array of features. |
protected boolean |
esChunkOn
flag for experience-specific chunks is on or not. |
protected GKS |
gks
the GKS component. |
protected Global |
global
global settings. |
protected Feature[] |
nacsActiveInput
current active input features to NACS. |
protected short[] |
nacsActiveInputDimInfo
the active dim indices to ACS input or output. |
protected Feature[] |
nacsActiveOutput
current active output features from NACS. |
protected short[] |
nacsActiveOutputDimInfo
the active dim indices to ACS input or output. |
protected Feature[] |
nextState
next state in format of an array of features. |
protected java.lang.Object[] |
results
retrieval results in format of an array of GKSChunks. |
protected Feature[] |
reward
current reinforcement in format of an array of features. |
Constructor Summary | |
NACS()
|
|
NACS(Global g)
|
Method Summary | |
AbsEMSample[] |
getAemSamples(int netIdx)
Returns AEM samples. |
Chunk[][] |
getAllConclusions()
Returns the all of the conclusions from the monitor buffer. |
AMNet[] |
getAmns()
Returns the GKS component. |
EMAcsSample[] |
getEmAcsSamples(int netIdx,
int trainType)
Returns ACS samples in EM. |
EMNacsSample[] |
getEmNacsSamples(int netIdx)
Returns NACS samples in EM. |
GKS |
getGks()
Returns the GKS component. |
java.lang.Object[] |
getResults()
Returns the retrieval results. |
int |
getRT()
Returns the response time. |
boolean |
isRetrieved()
check if the process of retrieval is done or not at this step. |
void |
observeState(Feature[] state)
Observes and decompose current state. |
void |
performAction(short[][][] chosenActions)
Performs NACS control action. |
void |
preTrainAmn(int amnIdx)
pre-training a specific AMN. |
void |
setActiveAmn(int amnIdx)
Sets the active AMN network. |
void |
setAmnCue(int idx,
Feature[] input)
Sets the cue as input to an AMN net. |
void |
setConditionDimInfo(short[][] info)
Sets the dimension information of condition chunks. |
void |
setCurrentTime(long curTime)
Sets current time. |
void |
setGksCue(Feature[] cue)
Sets the cue as input to NACS. |
void |
setGksCue(Feature[] cue,
int concIdx)
Deprecated. Replaced by setGksCue( Feature[] cue ). |
java.lang.String |
testAem(int acsNetIdx)
|
void |
update(short[][][][] chosenActions,
Feature[] nState,
double[] rewards)
update NACS. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Global global
protected GKS gks
protected AMNet[] amns
protected int activeAmnIdx
protected int acsNetNum
protected int[] acsStateDimNums
protected int[] acsActionDimNums
protected int[] acsRewardDimNums
protected int[] acsStepFeatNums
protected boolean esChunkOn
protected boolean aemOn
protected boolean amnMultiFlag
protected double aemTrainedByEmProb
protected AbsEM[] absEMs
protected short[] nacsActiveInputDimInfo
protected short[] nacsActiveOutputDimInfo
protected Feature[] nacsActiveInput
protected Feature[] nacsActiveOutput
protected Feature[] curState
protected Feature[] curAction
protected Feature[] nextState
protected Feature[] reward
protected java.lang.Object[] results
protected short[][] conditionDimInfo
Constructor Detail |
public NACS()
public NACS(Global g)
Method Detail |
public boolean isRetrieved()
public java.lang.Object[] getResults()
public Chunk[][] getAllConclusions()
public AbsEMSample[] getAemSamples(int netIdx)
netIdx
- the index on an ACS net.
public EMAcsSample[] getEmAcsSamples(int netIdx, int trainType)
netIdx
- the index on an ACS net.trainType
- the train type: for ACS or AEM.
public EMNacsSample[] getEmNacsSamples(int netIdx)
netIdx
- the index on an AMN net.
public int getRT()
public GKS getGks()
public AMNet[] getAmns()
public void setCurrentTime(long curTime)
public void setGksCue(Feature[] cue, int concIdx)
public void setGksCue(Feature[] cue)
cue
- the value to set.public void setAmnCue(int idx, Feature[] input)
idx
- index on an AMN network.input
- the value to set.public void setActiveAmn(int amnIdx)
amnIdx
- the AMN index to set.public void setConditionDimInfo(short[][] info)
info
- the information to set.public void preTrainAmn(int amnIdx)
public void observeState(Feature[] state)
public void performAction(short[][][] chosenActions)
public void update(short[][][][] chosenActions, Feature[] nState, double[] rewards)
chosenActions
- the chosen actions by ACS.nState
- the next state.rewards
- the currently received reinforcements.public java.lang.String testAem(int acsNetIdx)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |