|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.AbleObject | +--com.ibm.able.AbleDefaultAgent | +--com.ibm.able.agents.AbleNeuralPredictionAgent
This class implements prediction using back propagation
Field Summary | |
---|---|
double |
avgRMSError
|
protected int |
bufferSize
|
protected java.lang.String |
dataFileName
|
static java.lang.String |
defaultName
Value assigned to name by default. |
protected boolean |
explicitErrorMode
|
protected int |
feedbackType
|
protected AbleFilter |
filt1
|
protected AbleFilter |
filt2
|
protected boolean |
firstPass
|
protected int |
horizon
|
protected AbleImport |
imp1
|
protected AbleImport |
imp2
|
protected int |
lastNumPasses
|
protected int |
maxNumPasses
|
protected double |
maxRMSError
|
protected AbleBackPropagation |
net
|
protected java.lang.String |
netArch
|
int |
numPasses
|
protected java.lang.String |
testDataFileName
|
protected boolean |
training
|
protected boolean |
trainOK
|
protected int |
trainToTestRatio
|
protected AbleTimeSeriesFilter |
tsFilter
|
protected int |
windowSize
|
Fields inherited from class com.ibm.able.AbleDefaultAgent |
---|
activeDataSource, eventConnections, myBeans, numEpochs, processList, processListOK, userDefinedFunctions |
Fields inherited from class com.ibm.able.AbleObject |
---|
changed, chgSupport, comment, dataFlowEnabled, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
Constructor Summary | |
---|---|
AbleNeuralPredictionAgent()
|
|
AbleNeuralPredictionAgent(java.lang.String aName)
|
Method Summary | |
---|---|
protected void |
autoTrain(int numPasses)
this method toggles between train/test modes it is only called at the end of an epoch |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
double |
getAvgRMSError()
|
int |
getBufferSize()
|
java.lang.String |
getDataFileName()
|
boolean |
getExplicitErrorMode()
|
int |
getHorizon()
Get the horizon -- number of time steps in the future for the target field |
int |
getMaxNumPasses()
|
double |
getMaxRMSError()
|
int |
getMode()
get the internal config for either NNTRAIN = training from an external data file NNTEST = testing (with network locked) from an external data file or NNRUN = running (with network locked) from data placed in the input buffer |
java.lang.String |
getNetArch()
Return the number of hidden units specified. |
java.lang.String |
getNetArchitecture()
Return the number of input, hidden, and output units. |
AbleBackPropagation |
getNetwork()
|
int |
getNumPasses()
|
java.lang.String |
getTestDataFileName()
|
double |
getTolerance()
|
int |
getTrainToTestRatio()
|
int |
getWindowSize()
Get the windowSize parameter -- number of time the input record is duplicated for presentation to the neural network |
void |
init()
Generate a complete neural prediction agent bean The training source file is used to create filters. |
boolean |
isTraining()
Check to see if the network is in the process of training. |
void |
process()
Process a single input record .... |
void |
processTimerEvent()
This method is called from the asynch thread It is only used for automated training of the neural agent |
void |
reset()
Reset each bean created when the agent was initialized. |
void |
setBufferSize(int size)
|
void |
setDataFileName(java.lang.String aFileName)
|
protected void |
setDefaults()
|
void |
setExplicitErrorMode(boolean state)
|
void |
setFeedbackType(int type)
|
void |
setHorizon(int horizon)
Set the horizon parameter -- the number of time steps (records) into the future that the target fields are taken from. |
void |
setMaxNumPasses(int num)
|
void |
setMaxRMSError(double err)
|
void |
setMode(int mode)
set the internal config for either NNTRAIN = training from an external data file NNTEST = testing (with network locked) from an external data file or NNRUN = running (with network locked) from data placed in the input buffer |
void |
setNetArch(java.lang.String arch)
|
void |
setNumPasses(int num)
|
void |
setTestDataFileName(java.lang.String aFileName)
|
void |
setTolerance(double tol)
|
void |
setTrainToTestRatio(int num)
|
void |
setWindowSize(int windowSize)
Set the windowSize parameter for time-series processing |
void |
startTraining()
start automatically training the model from the external data |
void |
stopTraining()
stop automatically training the model from the external data |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.able.AbleBean |
---|
getComment, getLogger, getName, getParent, getState, getTraceLogger, init, isChanged, process, setChanged, setComment, setLogger, setName, setParent, setState, setTraceLogger |
Methods inherited from interface com.ibm.able.AbleEventListenerManager |
---|
addAbleEventListener, dataChanged, getAbleEventListeners, notifyAbleEventListeners, removeAbleEventListener |
Methods inherited from interface com.ibm.able.AbleEventQueueProcessor |
---|
processAbleEvent, processNoEventProcessingEnabledSituation |
Methods inherited from interface com.ibm.able.AblePropertyChangeManager |
---|
addPropertyChangeListener, addPropertyConnection, getPropertyConnectionManager, removeAllPropertyConnections, removePropertyChangeListener, removePropertyConnection |
Methods inherited from interface com.ibm.able.AbleSerializable |
---|
getFileName, restoreFromFile, restoreFromFile, saveToFile, saveToFile, setFileName |
Methods inherited from interface com.ibm.able.AbleBeanContainer |
---|
getName |
Field Detail |
public static final java.lang.String defaultName
protected java.lang.String dataFileName
protected java.lang.String testDataFileName
protected int bufferSize
protected int maxNumPasses
protected double maxRMSError
protected java.lang.String netArch
protected int feedbackType
protected AbleImport imp1
protected AbleImport imp2
protected AbleFilter filt1
protected AbleFilter filt2
protected AbleTimeSeriesFilter tsFilter
protected AbleBackPropagation net
public double avgRMSError
public int numPasses
protected boolean training
protected boolean explicitErrorMode
protected int lastNumPasses
protected int trainToTestRatio
protected boolean trainOK
protected int windowSize
protected int horizon
protected boolean firstPass
Constructor Detail |
public AbleNeuralPredictionAgent() throws AbleException
public AbleNeuralPredictionAgent(java.lang.String aName) throws AbleException
Method Detail |
public void reset() throws AbleException
reset
in class AbleDefaultAgent
com.ibm.able.AbleDefaultAgent
AbleException
- If an error occurs when resetting
a contained bean. All errors are
collected and insert into the exception
so that one bean's error does not
prevent another from being reset.protected void setDefaults() throws AbleException
public void init() throws AbleException
init
in class AbleObject
com.ibm.able.AbleBean
AbleException
- If an error occurs.public void process() throws AbleException
process
in class AbleDefaultAgent
com.ibm.able.AbleDefaultAgent
AbleException
- If an error occurs. Errors from each contained
bean are accumulated.public void processTimerEvent() throws AbleException
processTimerEvent
in class AbleObject
com.ibm.able.AbleEventQueueProcessor
AbleException
- If an error occurs.protected void autoTrain(int numPasses)
public void setDataFileName(java.lang.String aFileName) throws AbleException
public java.lang.String getDataFileName()
public void setTestDataFileName(java.lang.String aFileName) throws AbleException
public java.lang.String getTestDataFileName()
public void setBufferSize(int size)
public int getBufferSize()
public AbleBackPropagation getNetwork()
public int getNumPasses()
public void setNumPasses(int num)
public void setMaxNumPasses(int num)
public int getMaxNumPasses()
public void setMaxRMSError(double err)
public double getMaxRMSError()
public double getAvgRMSError()
public void setNetArch(java.lang.String arch) throws AbleException
public void setFeedbackType(int type) throws AbleException
public void setTrainToTestRatio(int num)
public int getTrainToTestRatio()
public java.lang.String getNetArch()
public java.lang.String getNetArchitecture()
public void setExplicitErrorMode(boolean state)
public boolean getExplicitErrorMode()
public void setTolerance(double tol)
public double getTolerance()
public void setWindowSize(int windowSize)
public int getWindowSize()
public void setHorizon(int horizon)
public int getHorizon()
public void setMode(int mode) throws AbleException
public int getMode() throws AbleException
public boolean isTraining() throws AbleException
public void startTraining() throws AbleException
public void stopTraining() throws AbleException
public static java.lang.String Copyright()
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |