|
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.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, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
Constructor Summary | |
---|---|
AbleDecisionTree()
|
|
AbleDecisionTree(java.lang.String name)
|
Method Summary | |
---|---|
protected void |
copyInfo()
|
static java.lang.String |
Copyright()
Determine the copyright of this class. |
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
AbleObject
AbleState.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.
init
in class AbleObject
com.ibm.able.AbleObject
AbleException
- If an error occurs.AbleObject.startEnabledEventProcessing()
public void reset() throws AbleException
AbleObject
This base method has no default implementation. It only provides tracing.
reset
in class AbleObject
com.ibm.able.AbleObject
AbleException
- If an error occurs.AbleBean.reset()
public void resetStatistics() throws AbleException
protected void initFromImport() throws AbleException
protected void copyInfo() throws AbleException
protected void copyTrainData() throws AbleException
protected void copyTestData() throws AbleException
public void process() throws AbleException
AbleObject
This base method implementation provides tracing only.
process
in class AbleObject
com.ibm.able.AbleObject
AbleObject.inputBuffer
,
AbleObject.outputBuffer
,
AbleBean.process()
public void processTimerEvent() throws AbleException
AbleObject
This 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 class AbleObject
com.ibm.able.AbleObject
AbleException
- If an error occurs.public void handleAbleEvent(AbleEvent theEvent)
AbleEventListener
handleAbleEvent
in class AbleObject
com.ibm.able.AbleEventListener
theAbleEvent
- The event to handle.AbleException
- If an error occurs.public void setNetMode(int newValue) throws AbleException
public 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
public boolean isDecisionTreeBuilt()
public boolean getDecisionTreeBuilt()
public java.lang.String getDecisionTreeAsString()
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 |