|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.AbleObject
com.ibm.able.AbleDefaultAgent
com.ibm.able.beans.bayes.AbleNaiveBayesClassifierAgent
This class implements a classifier using back propagation
| Field Summary | |
|---|---|
double |
avgRMSError
|
protected int |
bufferSize
|
protected java.lang.String |
dataFileName
|
protected int |
desiredPercentCorrect
|
protected int |
desiredPercentIncorrect
|
protected AbleFilter |
filt1
|
protected AbleFilter |
filt2
|
protected AbleImport |
imp1
|
protected AbleImport |
imp2
|
protected double[] |
inNum
|
protected java.lang.String[] |
inSym
|
protected int |
lastNumPasses
|
protected int |
maxNumPasses
|
protected AbleBackPropagation |
net
|
protected java.lang.String |
netArch
|
int |
numPasses
|
protected double[] |
outNum
|
protected java.lang.String[] |
outSym
|
protected java.lang.String |
testDataFileName
|
protected double |
testTolerance
|
protected boolean |
training
|
protected boolean |
trainOK
|
protected int |
trainToTestRatio
|
protected double |
userTolerance
|
| Fields inherited from class com.ibm.able.AbleDefaultAgent |
|---|
activeDataSource, defaultName, 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, properties, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
| Constructor Summary | |
|---|---|
AbleNaiveBayesClassifierAgent()
|
|
AbleNaiveBayesClassifierAgent(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 |
double |
getAvgRMSError()
|
int |
getBufferSize()
|
java.lang.String |
getDataFileName()
|
int |
getDesiredPercentCorrect()
|
int |
getDesiredPercentIncorrect()
|
int |
getMaxNumPasses()
|
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 |
getTestTolerance()
|
int |
getTrainToTestRatio()
|
void |
init()
generate a complete NaiveBayes Classifier agent bean |
boolean |
isTraining()
Check to see if the network is in the process of training. |
void |
processTimerEvent()
This method is called from the asynch thread It is only used for automated training of the NaiveBayes agent |
void |
reset()
Reset each bean in the agent. |
void |
setBufferSize(int size)
|
void |
setDataFileName(java.lang.String aFileName)
|
void |
setDesiredPercentCorrect(int percent)
|
void |
setDesiredPercentIncorrect(int percent)
|
void |
setMaxNumPasses(int num)
|
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 |
setTestTolerance(double tol)
|
void |
setTrainToTestRatio(int num)
|
void |
startTraining()
start automatically training the model from the external data this method is called from the customizer Start button should only be called when agent is already in TRAIN state |
void |
stopTraining()
stop automatically training the model from the external data |
void |
train()
automatically train the model from the external data stop and lock the network when we are done |
| 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, getProperties, getProperty, getState, getTraceLogger, init, isChanged, process, removeProperty, setChanged, setComment, setLogger, setName, setParent, setProperties, setProperty, 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, getPropertyChangeListeners, 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 |
protected java.lang.String dataFileName
protected java.lang.String testDataFileName
protected int bufferSize
protected int maxNumPasses
protected int desiredPercentCorrect
protected int desiredPercentIncorrect
protected java.lang.String netArch
protected AbleImport imp1
protected AbleImport imp2
protected AbleFilter filt1
protected AbleFilter filt2
protected AbleBackPropagation net
public double avgRMSError
public int numPasses
protected boolean training
protected int lastNumPasses
protected double userTolerance
protected double testTolerance
protected int trainToTestRatio
protected boolean trainOK
protected double[] inNum
protected double[] outNum
protected java.lang.String[] inSym
protected java.lang.String[] outSym
| Constructor Detail |
public AbleNaiveBayesClassifierAgent()
throws AbleException
public AbleNaiveBayesClassifierAgent(java.lang.String aName)
throws AbleException
| Method Detail |
public void init()
throws AbleException
init in interface AbleBeaninit in class AbleDefaultAgentAbleExceptionAbleObject.init()
public void processTimerEvent()
throws AbleException
processTimerEvent in interface AbleEventQueueProcessorprocessTimerEvent in class AbleObjectAbleException - If an error occurs.protected void autoTrain(int numPasses)
public void setDataFileName(java.lang.String aFileName)
public java.lang.String getDataFileName()
public void setTestDataFileName(java.lang.String aFileName)
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 setDesiredPercentCorrect(int percent)
public int getDesiredPercentCorrect()
public void setDesiredPercentIncorrect(int percent)
public int getDesiredPercentIncorrect()
public double getAvgRMSError()
public void setNetArch(java.lang.String arch)
public java.lang.String getNetArch()
public java.lang.String getNetArchitecture()
public void setTrainToTestRatio(int num)
public int getTrainToTestRatio()
public void setTestTolerance(double tol)
public double getTestTolerance()
public void setMode(int mode)
throws AbleException
AbleException
public int getMode()
throws AbleException
AbleException
public boolean isTraining()
throws AbleException
AbleException
public void train()
throws AbleException
AbleException
public void startTraining()
throws AbleException
AbleException
public void stopTraining()
throws AbleException
AbleException
public void reset()
throws AbleException
reset in interface AbleBeanreset in class AbleDefaultAgentAbleException - 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.
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||