|
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.AbleKnnClassifierAgent
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 | |
---|---|
AbleKnnClassifierAgent()
Constructor for AbleKnnClassifierAgent |
|
AbleKnnClassifierAgent(java.lang.String theName)
Constructor for AbleKnnClassifierAgent |
Method Summary | |
---|---|
static java.lang.String |
Copyright()
Determine the copyright of this class. |
int |
getBufferSize()
Get the buffer size |
int |
getK()
Get the k value |
AbleKnn |
getKnnBean()
Get the knn bean |
AbleFilter |
getKnnFil1()
Get the filter 1 bean |
AbleFilter |
getKnnFil2()
Get the filter 2 bean |
AbleImport |
getKnnImp1()
Get the import 1 bean |
AbleImport |
getKnnImp2()
Get the import 2 bean |
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 |
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 k-NN 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 |
setK(int kVal)
Set the k value 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 AbleKnnClassifierAgent() throws AbleException
public AbleKnnClassifierAgent(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
In this implementation, special processing occurs for EOF on the active data source. All other events are passed up to the superclass (AbleObject) for processing.
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 AbleKnn getKnnBean()
public AbleImport getKnnImp1()
public AbleImport getKnnImp2()
public AbleFilter getKnnFil1()
public AbleFilter getKnnFil2()
public void setK(int kVal)
public int getK()
public long getNumRecords()
public int getNumClasses()
public int getNumAttributes()
public void setMode(int mode) throws AbleException
public int getMode() throws AbleException
public static void main(java.lang.String[] args)
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 |