|
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.AbleDecisionTreeClassifierAgent
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 | |
---|---|
AbleDecisionTreeClassifierAgent()
Constructor for AbleDecisionTreeClassifierAgent |
|
AbleDecisionTreeClassifierAgent(java.lang.String theName)
Constructor for AbleDecisionTreeClassifierAgent |
Method Summary | |
---|---|
static java.lang.String |
Copyright()
Determine the copyright of this class. |
int |
getBufferSize()
Get the buffer size |
AbleDecisionTree |
getDecisionTreeBean()
Get the DecisonTree bean |
AbleFilter |
getDecisionTreeFil1()
Get the filter 1 bean |
AbleFilter |
getDecisionTreeFil2()
Get the filter 2 bean |
AbleImport |
getDecisionTreeImp1()
Get the import 1 bean |
AbleImport |
getDecisionTreeImp2()
Get the import 2 bean |
int |
getDiscretization()
Get the discretization value |
int |
getMetric()
Get the metric value |
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 DecisionTree 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 |
setMetric(int aMetric)
Set the metric 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 AbleDecisionTreeClassifierAgent() throws AbleException
public AbleDecisionTreeClassifierAgent(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 AbleDecisionTree getDecisionTreeBean()
public AbleImport getDecisionTreeImp1()
public AbleImport getDecisionTreeImp2()
public AbleFilter getDecisionTreeFil1()
public AbleFilter getDecisionTreeFil2()
public void setMetric(int aMetric)
public int getMetric()
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 |