|
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.knn.AbleNaiveBayesClassifierAgent
| Field Summary | |
|---|---|
static java.lang.String |
defaultName
Value assigned to name by default. |
| 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, properties, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
| Constructor Summary | |
|---|---|
AbleNaiveBayesClassifierAgent()
Constructor for AbleNaiveBayesClassifierAgent |
|
AbleNaiveBayesClassifierAgent(java.lang.String theName)
Constructor for AbleNaiveBayesClassifierAgent |
|
| Method Summary | |
|---|---|
int |
getBufferSize()
Get the buffer size |
int |
getDiscretization()
Get the discretization value |
int |
getM()
Get the m parameter |
int |
getMode()
get the internal config for either TRAIN = training (storing data) from an external data file TEST = testing (using stored data) from an external data file or RUN = running (using stored data) from data placed in the input buffer |
AbleNaiveBayes |
getNaiveBayesBean()
Get the NaiveBayes bean |
AbleFilter |
getNaiveBayesFil1()
Get the filter 1 bean |
AbleFilter |
getNaiveBayesFil2()
Get the filter 2 bean |
AbleImport |
getNaiveBayesImp1()
Get the import 1 bean |
AbleImport |
getNaiveBayesImp2()
Get the import 2 bean |
int |
getNumAttributes()
Get the number of attributes |
int |
getNumClasses()
Get the number of classes |
long |
getNumRecords()
Get the number of records |
java.lang.String |
getTestDataFileName()
Get the name of the test/run data file |
java.lang.String |
getTrainDataFileName()
Get the name of the training data file |
void |
handleAbleEvent(AbleEvent theAbleEvent)
Handle an Able event. |
void |
init()
Generate a naive bayes Classifier agent bean. |
static void |
main(java.lang.String[] args)
Main method for testing |
void |
reset()
Reset each bean created when the agent was initialized. |
void |
setBufferSize(int size)
Set the buffer size |
protected void |
setDefaults()
Set default values for parameters |
void |
setDiscretization(int aDiscr)
Set the discretization value from agent |
void |
setM(int aM)
Set the m parameter from agent |
void |
setMode(int mode)
set the internal config for either TRAIN = readind data from an external data file TEST = testing (using stored data) from an external data file or RUN = running (using stored data) from data placed in the input buffer |
void |
setTestDataFileName(java.lang.String aFileName)
Set the name of the test/run data file |
void |
setTrainDataFileName(java.lang.String aFileName)
Set the name of the training data file |
| 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, processTimerEvent |
| 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 |
public static final java.lang.String defaultName
| Constructor Detail |
public AbleNaiveBayesClassifierAgent()
throws AbleException
public AbleNaiveBayesClassifierAgent(java.lang.String theName)
throws AbleException
| Method Detail |
protected void setDefaults()
throws AbleException
AbleException
public void init()
throws AbleException
init in interface AbleBeaninit in class AbleDefaultAgentAbleExceptionAbleObject.init()
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.
public void handleAbleEvent(AbleEvent theAbleEvent)
throws AbleException
handleAbleEvent in interface AbleEventListenerhandleAbleEvent in class AbleDefaultAgenttheAbleEvent - The event to handle.
AbleException - If an error occurs.
public void setTrainDataFileName(java.lang.String aFileName)
throws AbleException
AbleExceptionpublic java.lang.String getTrainDataFileName()
public void setTestDataFileName(java.lang.String aFileName)
throws AbleException
AbleExceptionpublic java.lang.String getTestDataFileName()
public void setBufferSize(int size)
public int getBufferSize()
public AbleNaiveBayes getNaiveBayesBean()
public AbleImport getNaiveBayesImp1()
public AbleImport getNaiveBayesImp2()
public AbleFilter getNaiveBayesFil1()
public AbleFilter getNaiveBayesFil2()
public void setM(int aM)
public int getM()
public void setDiscretization(int aDiscr)
public int getDiscretization()
public long getNumRecords()
public int getNumClasses()
public int getNumAttributes()
public void setMode(int mode)
throws AbleException
AbleException
public int getMode()
throws AbleException
AbleExceptionpublic static void main(java.lang.String[] args)
|
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 | |||||||||||