oracle.dmt.odm.result
Class ClassificationTestResult

java.lang.Object
  |
  +--oracle.dmt.odm.MiningObject
        |
        +--oracle.dmt.odm.LocatableObject
              |
              +--oracle.dmt.odm.result.MiningResult
                    |
                    +--oracle.dmt.odm.result.MiningTestResult
                          |
                          +--oracle.dmt.odm.result.ClassificationTestResult
All Implemented Interfaces:
java.io.Serializable

public class ClassificationTestResult
extends MiningTestResult

An instance of ClassificationTestResult represents the result of the test operation for a classification model. It contains an estimated accuracy value and a confusion matrix.

Since:
9.0.1
See Also:
Serialized Form

Method Summary
TypeMethod
 float getAccuracy()
          Returns the computed accuracy of the model on the test data.
 CategoryMatrix getConfusionMatrix()
          Returns the confusion matrix.
static void remove(Connection dmsCon, java.lang.String resultName)
          Removes the specified mining test result from the DMS server.
static ClassificationTestResult restore(Connection dmsCon, java.lang.String resultName)
          Restores the specified mining test result from the DMS server into the client space.
 java.lang.String toString()
          Converts the mining test result to a string representation for convienent output.
 
Methods inherited from class oracle.dmt.odm.result.MiningTestResult
listContents, listContents, listContents
 
Methods inherited from class oracle.dmt.odm.result.MiningResult
getCompletionTimestamp, getDurationTime, getExecutionDuration, getInputMiningData, getMiningModel, getName, getStartingTimestamp
 
Methods inherited from class oracle.dmt.odm.LocatableObject
deserialize, serialize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getConfusionMatrix

public CategoryMatrix getConfusionMatrix()
Returns the confusion matrix.
Returns:
CategoryMatrix instance of the confusion matrix

getAccuracy

public float getAccuracy()
Returns the computed accuracy of the model on the test data.
Returns:
the accuracy value

restore

public static ClassificationTestResult restore(Connection dmsCon,
                                               java.lang.String resultName)
                                        throws InvalidArgumentException,
                                               ODMException
Restores the specified mining test result from the DMS server into the client space.
Parameters:
dmsCon - Connection instance of the DMS server
resultName - Name of the mining test result to be restored
Throws:
InvalidArgumentException
- dmsCon or resultName is null
ODMException
- unable to restore the mining test result into the client space

remove

public static void remove(Connection dmsCon,
                          java.lang.String resultName)
                   throws ODMException,
                          java.sql.SQLException
Removes the specified mining test result from the DMS server.
Parameters:
dmsCon - Connection instance of the DMS server
resultName - the name of the mining test result to be removed
Throws:
ODMException
- resultName is null
- resultName > 64 characters
SQLException
- unable to access the DMS server

toString

public java.lang.String toString()
Converts the mining test result to a string representation for convienent output.
Overrides:
toString in class java.lang.Object
Returns:
String