|
Oracle Data Mining Java API Reference 10g Release 1 (10.1) B12276-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
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
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 |
public java.lang.String showScientific(float coefficient)
public CategoryMatrix getConfusionMatrix()
public float getAccuracy()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringSN()
public float getAccuracy(Category predicted) throws InvalidArgumentException, ODMException
InvalidArgumentException
ODMException
public static ClassificationTestResult restore(Connection dmsCon, java.lang.String resultName) throws InvalidArgumentException, ODMException, java.sql.SQLException
ClassificationTestResult
object with the specified resultName
from the database.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.
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |