|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A ClassificationTestTask is a mining
task used for testing a classification model to
measure the goodness of the model. The results of
executing a classification test task include the
accuracy of the model and a confusion matrix which
is the statistics of the predictions made during
the test.
MiningObject,
Task,
TestTask| Method Summary | |
boolean |
computeMetric(ClassificationTestMetricOption testMetric)
Returns true if the test metric is to be computed, false otherwise. |
void |
computeMetric(ClassificationTestMetricOption testMetric,
boolean flag)
Indicates which metric(s) to compute as indicated by the testMetric and corresponding flag. |
java.lang.String |
getCostMatrixName()
Returns the name of the cost matrix to be used for test. |
int |
getNumberOfLiftQuantiles()
Returns the number of quantiles for lift computation. |
java.lang.Object |
getPositiveTargetValue()
Returns the positive target value for lift computation. |
void |
setCostMatrixName(java.lang.String costMatrixName)
Sets the name of the cost matrix to be used for test. |
void |
setNumberOfLiftQuantiles(int numberOfQuantiles)
Sets the number of quantiles for lift computation. |
void |
setPositiveTargetValue(java.lang.Object positiveTargetValue)
Sets the positive target value for lift computation. |
| Methods inherited from interface javax.datamining.supervised.TestTask |
getModelName, getTestDataMap, getTestDataName, getTestMetricsName, setModelName, setTestDataMap, setTestDataName, setTestMetricsName, verify |
| Methods inherited from interface javax.datamining.base.Task |
getExecutionHandle |
| Methods inherited from interface javax.datamining.MiningObject |
getCreationDate, getCreatorInfo, getDescription, getName, getObjectIdentifier, getObjectType, setDescription |
| Method Detail |
public boolean computeMetric(ClassificationTestMetricOption testMetric)
testMetric -
public void computeMetric(ClassificationTestMetricOption testMetric,
boolean flag)
testMetric - flag -
public java.lang.String getCostMatrixName()
setCostMatrixName method.
public int getNumberOfLiftQuantiles()
public java.lang.Object getPositiveTargetValue()
public void setCostMatrixName(java.lang.String costMatrixName)
throws JDMException
costMatrixName -
JDMExceptionpublic void setNumberOfLiftQuantiles(int numberOfQuantiles)
numberOfQuantiles - The number of quantiles for lift computation.
public void setPositiveTargetValue(java.lang.Object positiveTargetValue)
positiveTargetValue - The positive target value for lift computation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||