|
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.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, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
Constructor Summary | |
---|---|
AbleNaiveBayesClassifierAgent()
Constructor for AbleNaiveBayesClassifierAgent |
|
AbleNaiveBayesClassifierAgent(java.lang.String theName)
Constructor for AbleNaiveBayesClassifierAgent |
Method Summary | |
---|---|
static java.lang.String |
Copyright()
Determine the copyright of this class. |
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, 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, processTimerEvent |
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
Constructor Detail |
public AbleNaiveBayesClassifierAgent() throws AbleException
public AbleNaiveBayesClassifierAgent(java.lang.String theName) throws AbleException
Method Detail |
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 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.public void handleAbleEvent(AbleEvent theAbleEvent) throws AbleException
handleAbleEvent
in class AbleDefaultAgent
theAbleEvent
- The event to handle.
public void setTrainDataFileName(java.lang.String aFileName) throws AbleException
public java.lang.String getTrainDataFileName()
public void setTestDataFileName(java.lang.String aFileName) throws AbleException
public 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
public int getMode() throws AbleException
public static java.lang.String Copyright()
public static void main(java.lang.String[] args)
|
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 |