|
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.beans.decisiontree.AbleDecisionTree
class AbleDecisionTree
| Field Summary | |
|---|---|
static java.lang.String |
Built
|
protected int |
currentExample
|
protected boolean |
decisionTreeBuilt
|
protected int |
netMode
|
protected double[] |
outBuffer
|
static short |
RUN
|
static short |
TEST
|
static short |
TRAIN
|
| Fields inherited from class com.ibm.able.AbleObject |
|---|
changed, chgSupport, comment, dataFlowEnabled, defaultName, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, properties, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
| Constructor Summary | |
|---|---|
AbleDecisionTree()
|
|
AbleDecisionTree(java.lang.String name)
|
|
| Method Summary | |
|---|---|
protected void |
copyInfo()
|
protected void |
copyTestData()
|
protected void |
copyTrainData()
|
int |
getCorrectPredClass()
|
int |
getCurrentExample()
|
java.lang.String |
getDecisionTreeAsString()
Return null if tree has not been built, and a formatted text representation if one has been built. |
boolean |
getDecisionTreeBuilt()
|
int |
getDiscretizationInterval()
|
int |
getIncorrectPredClass()
|
int |
getNetMode()
Get the value for some String property from the BeanWrapper |
double |
getPercentCorrect()
Get the value for some String property from the BeanWrapper |
java.lang.String |
getPredictClass()
|
int |
getPredictClassIndex()
|
int |
getTotalPredClass()
|
short[] |
getValsTestClass()
|
short[] |
getValsTrainClass()
|
void |
handleAbleEvent(AbleEvent theEvent)
Handles an Able event. |
void |
init()
Initialize and configure the bean. |
protected void |
initFromImport()
|
boolean |
isDecisionTreeBuilt()
|
void |
process()
Performs the main, synchronous, standard processing function performed by this bean. |
void |
processTimerEvent()
Process a timer expiration event synchronously; that is, on the same thread as the caller. |
void |
reset()
Reset this bean to its "initialized" state. |
void |
resetStatistics()
|
void |
setDecisionTreeBuilt(boolean theValue)
|
void |
setDiscretizationInterval(int theCount)
|
void |
setNetMode(int newValue)
Set the value for some String property in BeanWrapper, and fire a propertyChange event to notify any propertyChange listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String Built
public static final short TRAIN
public static final short TEST
public static final short RUN
protected int netMode
protected int currentExample
protected boolean decisionTreeBuilt
protected double[] outBuffer
| Constructor Detail |
public AbleDecisionTree()
throws AbleException
public AbleDecisionTree(java.lang.String name)
throws AbleException
| Method Detail |
public void init()
throws AbleException
AbleObjectAbleState.Initiated or
AbleState.Waiting.
If either the AbleEventProcessing or
TimerEventProcessing flags are enabled, this method calls
AbleObject.startEnabledEventProcessing()
to start a new thread for asynchronous or timer event processing.
An AbleProperty.ProcessingState PropertyChangeEvent is fired.
Beans overriding this method should call
super.init() after any customization and
before returning so that the thread is started if needed
and the PropertyChangeEvent is fired.
An application using asynchronous or timer event processing should sleep until the event queue is functional by imbedding logic like this:
anAbleObject.init();
while (!AbleState.isReady(anAbleObject.getState())) {
try {
Thread.sleep(100l);
} catch (InterruptedException e1) {
}
}
init in interface AbleBeaninit in class AbleObjectAbleException - If an error occurs.AbleObject.startEnabledEventProcessing()
public void reset()
throws AbleException
AbleObjectThis base method has no default implementation. It only provides tracing.
reset in interface AbleBeanreset in class AbleObjectAbleException - If an error occurs.AbleBean.reset()
public void resetStatistics()
throws AbleException
AbleException
protected void initFromImport()
throws AbleException
AbleException
protected void copyInfo()
throws AbleException
AbleException
protected void copyTrainData()
throws AbleException
AbleException
protected void copyTestData()
throws AbleException
AbleException
public void process()
throws AbleException
AbleObjectThis base method implementation provides tracing only.
process in interface AbleBeanprocess in class AbleObjectAbleExceptionAbleObject.inputBuffer,
AbleObject.outputBuffer,
AbleBean.process()
public void processTimerEvent()
throws AbleException
AbleObjectThis method is called by the AbleEventQueue whenever the following conditions are all true:
AbleObject.setSleepTime(long) has expired.
This base method has no default implementation. It provides only tracing.
processTimerEvent in interface AbleEventQueueProcessorprocessTimerEvent in class AbleObjectAbleException - If an error occurs.public void handleAbleEvent(AbleEvent theEvent)
AbleEventListener
handleAbleEvent in interface AbleEventListenerhandleAbleEvent in class AbleObject
public void setNetMode(int newValue)
throws AbleException
AbleExceptionpublic int getNetMode()
public double getPercentCorrect()
public int getTotalPredClass()
public int getCorrectPredClass()
public int getIncorrectPredClass()
public short[] getValsTrainClass()
public short[] getValsTestClass()
public java.lang.String getPredictClass()
public int getPredictClassIndex()
public int getCurrentExample()
public void setDiscretizationInterval(int theCount)
public int getDiscretizationInterval()
public void setDecisionTreeBuilt(boolean theValue)
throws AbleException
AbleExceptionpublic boolean isDecisionTreeBuilt()
public boolean getDecisionTreeBuilt()
public java.lang.String getDecisionTreeAsString()
|
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 | |||||||||||