Skip navigation links

Oracle Data Mining Java API Reference
11g Release 1 (11.1)

B28132-01


oracle.dmt.jdm.supervised.classification
Class OraClassificationModel

java.lang.Object
  extended byoracle.dmt.jdm.OraDMObject
      extended byoracle.dmt.jdm.OraMiningObject
          extended byoracle.dmt.jdm.base.OraModel
              extended byoracle.dmt.jdm.supervised.OraSupervisedModel
                  extended byoracle.dmt.jdm.supervised.classification.OraClassificationModel

All Implemented Interfaces:
javax.datamining.supervised.classification.ClassificationModel, javax.datamining.MiningObject, javax.datamining.base.Model, oracle.dmt.jdm.OraPLSQLConstants, javax.datamining.supervised.SupervisedModel

public class OraClassificationModel
extends oracle.dmt.jdm.supervised.OraSupervisedModel
implements javax.datamining.supervised.classification.ClassificationModel

OraClassificationModel extension provide static methods to add/remove cost matrix associated with the model.

Since:
OJDM 11.1.0

Method Summary
static void addCostMatrix(javax.datamining.resource.Connection dmeConn, java.lang.String modelName, java.lang.String costMatrixName)
          This method adds cost matrix to the specified classification model.
static void removeCostMatrix(javax.datamining.resource.Connection dmeConn, java.lang.String modelName)
          This method is used to remove the cost matrix associated with the model.

 

Methods inherited from class oracle.dmt.jdm.supervised.OraSupervisedModel
getTargetAttributeName

 

Methods inherited from class oracle.dmt.jdm.base.OraModel
getBuildTransformation, getModelTransformations, setBuildTransformation

 

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

 

Methods inherited from interface javax.datamining.supervised.SupervisedModel
getTargetAttributeName

 

Methods inherited from interface javax.datamining.base.Model
getApplicationName, getAttributeStatistics, getBuildDuration, getBuildSettings, getEffectiveBuildSettings, getMajorVersion, getMiningAlgorithm, getMiningFunction, getMinorVersion, getProviderName, getProviderVersion, getSignature, getTaskIdentifier, getUniqueIdentifier, getVersion

 

Methods inherited from interface javax.datamining.MiningObject
getCreationDate, getCreatorInfo, getDescription, getName, getObjectIdentifier, getObjectType, setDescription

 

Method Detail

addCostMatrix

public static void addCostMatrix(javax.datamining.resource.Connection dmeConn,
                                 java.lang.String modelName,
                                 java.lang.String costMatrixName)
                          throws javax.datamining.JDMException
This method adds cost matrix to the specified classification model. When cost matrix is specified one can enable cost computations for the models that do not take cost matrix as model build input. For example, SVM classification model build operation do not take cost matrix as input. However, at the time of apply a cost matrix can be used to specify costs associated with the false predictions and produce cost values associated with the prediction value. So this can be done in two ways in OJDM API, either by specifying the cost matrix table at the time of apply as part of the classification apply settings or by explicitely adding the cost matrix to the model using this method. Using this method is performant in calculating cost values because cost matrix is embedded with the model and also it avoids specifying cost matrix for each apply operations.
Parameters:
dmeConn -
modelName -
costMatrixName -
Throws:
javax.datamining.JDMException
Since:
OJDM 11.1.0

removeCostMatrix

public static void removeCostMatrix(javax.datamining.resource.Connection dmeConn,
                                    java.lang.String modelName)
                             throws javax.datamining.JDMException
This method is used to remove the cost matrix associated with the model.
Parameters:
dmeConn -
modelName -
Throws:
javax.datamining.JDMException
Since:
OJDM 11.1.0

Skip navigation links

Oracle Data Mining Java API Reference
11g Release 1 (11.1)

B28132-01


Copyright © 2005-2007 Oracle. All rights reserved.