Oracle Data Mining Java API Reference
10g Release 1 (10.1)

B12276-01

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. The confusion matrix looks like Predicted Yes No Acutal Yes 0 5 Acutal No 500 0 From the above matrix table, we can see that (Category row, Category column) will have the following Confusion Matrix values: Confusion Matrix of (Actual Yes, Predicted Yes) = 0 Confusion Matrix of (Actual Yes, Predicted No) = 5.00 Confusion Matrix of (Actual No, Predicted Yes) = 500.00 Confusion Matrix of (Actual No, Predicted No) = 0

Since:
9.0.1
See Also:
Serialized Form

Method Summary
 float getAccuracy()
          Returns the computed accuracy of the model on the test data.
 float getAccuracy(Category predicted)
          Returns the computed accuracy of the model on the test data.
 CategoryMatrix getConfusionMatrix()
          Returns the confusion matrix.
static ClassificationTestResult restore(Connection dmsCon, java.lang.String resultName)
          Restores the ClassificationTestResult object with the specified resultName from the database.
 java.lang.String showScientific(float coefficient)
           
 java.lang.String toString()
          Converts the mining test result to a string representation for convienent output.
 java.lang.String toStringSN()
           

 

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, getMiningModelID, getName, getStartingTimestamp, remove, rename

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Method Detail

showScientific

public java.lang.String showScientific(float coefficient)

getConfusionMatrix

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

getAccuracy

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

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

toStringSN

public java.lang.String toStringSN()

getAccuracy

public float getAccuracy(Category predicted)
                  throws InvalidArgumentException,
ODMException
Returns the computed accuracy of the model on the test data.
Returns:
the accuracy value
InvalidArgumentException
ODMException

restore

public static ClassificationTestResult restore(Connection dmsCon,
                                               java.lang.String resultName)
                                                              throws InvalidArgumentException,
ODMException,
                                                                     java.sql.SQLException
Restores the ClassificationTestResult object with the specified resultName from the database.
Throws:
InvalidArgumentException - when dmsConn or resultName is null.
ODMException - when resultName is empty or exceeds 64 characters in length.
java.sql.SQLException - when there is a failure in JDBC calls.

Copyright © 2003 Oracle Corporation. All Rights Reserved.