|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A TestTask is a common interface for
all tasks that test a supervised model. Test is a
mining operation that applies an input data whose
cases have known classes to a supervised model to
measure the goodness of the model built on the
build data.
The need to test a model is only applicable in supervised learning. As such, the test task is in the supervised package.
MiningObject,
Task| Method Summary | |
java.lang.String |
getModelName()
Returns the name of the model to be tested. |
java.util.Map |
getTestDataMap()
Returns the attribute map for test input data. |
java.lang.String |
getTestDataName()
Returns the name of the test data. |
java.lang.String |
getTestMetricsName()
Returns the name of the test metrics to be created as the result of test task. |
void |
setModelName(java.lang.String modelName)
Sets the name of the model to be tested. |
void |
setTestDataMap(java.util.Map testDataMap)
Specifies a mppaing between physical attribute names in the test input data and signature attribute names with the model. |
void |
setTestDataName(java.lang.String testDataName)
Sets the name of the test data. |
void |
setTestMetricsName(java.lang.String testMetricsName)
Sets the name of the test metrics to be created as the result of test task. |
VerificationReport |
verify()
Verifies if the mappings are valid. |
| 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 java.lang.String getModelName()
public java.util.Map getTestDataMap()
public java.lang.String getTestDataName()
public java.lang.String getTestMetricsName()
public void setModelName(java.lang.String modelName)
throws JDMException
modelName - The name of the model to be tested.
JDMException
public void setTestDataMap(java.util.Map testDataMap)
throws JDMException
If the physical data is transactional and no mapping is provided, the data is still mapped as transactional as long as the data contains at least two PhysicalAttributes with caseId and atttributeName roles.
In case of explicit mapping, the user would need to provide a java.util.Map object that contains mapping of physical attribute name to logical attribute name.
testDataMap - A map that contains the mapping between physical attribute names and signature attribute names for test data.
JDMException
public void setTestDataName(java.lang.String testDataName)
throws JDMException
testDataName - The name of the test data.
JDMException
public void setTestMetricsName(java.lang.String testMetricsName)
throws JDMException
testMetricsName - The name of the test metrics.
JDMExceptionpublic VerificationReport verify()
VerificationReport that contains a vendor specific explanation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||