|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ClassificationTestMetricsTask is a
mining task used for computing and creating test
metrics objects given an apply output data. The
result of executing a classification test metrics
task is a ClassificationTestMetrics
object.
Executing a
ClassificationTestMetricsTask task
without any metrics to be computed results in an
exception.
MiningObject,
Task,
TestMetricsTask| 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 metrics computation. |
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 optionally for test metrics computation. |
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.TestMetricsTask |
getActualTargetAttrName, getApplyOutputDataName, getPredictedTargetAttrName, getPredictionRankingAttrName, getTestMetricsName, setActualTargetAttrName, setApplyOutputDataName, setPredictedTargetAttrName, setPredictionRankingAttrName, 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 and corresponding flag. If flag is true, the metric is computed. If false, it is not computed. The default is true for confusion matrix, and false for the others. The method is idempotent for the same parameters. It may be invoked multiple times to compute more than one test metric. At least one test metrics object must be enabled.
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 | ||||||||