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

B12276-01

oracle.dmt.odm.model
Class SupportVectorMachineModel

java.lang.Object
  |
  +--oracle.dmt.odm.MiningObject
        |
        +--oracle.dmt.odm.LocatableObject
              |
              +--oracle.dmt.odm.model.MiningModel
                    |
                    +--oracle.dmt.odm.model.SupervisedModel
                          |
                          +--oracle.dmt.odm.model.SupportVectorMachineModel
All Implemented Interfaces:
java.io.Serializable

public abstract class SupportVectorMachineModel
extends SupervisedModel

An instance of SupportVectorMachineModel contains the metadata and tables from a model build. The metadata is sufficient to determine whether a model can be applied to given data. SupportVectorMachineModel inherits from SupervisedModel. It contains a support vector count and holds the metadata of the result of a mining (training) run, and contains the parameters common to all SVM algorithms.

Since:
10.1.0
See Also:
Serialized Form

Method Summary
static RecordInstance apply(Connection dmsConn, RecordInstance record, java.lang.String modelName)
          Performs the apply mining operation on a single record represented by an instance of RecordInstance.
static RecordInstance apply(Connection dmsConn, RecordInstance record, java.lang.String modelName, MiningApplyOutput applyOutput)
          Performs the apply mining operation on a single record represented by an instance of RecordInstance.
 int getSupportVectorCount()
          Returns count of Support Vectors resulting from the model build.

 

Methods inherited from class oracle.dmt.odm.model.SupervisedModel
apply, computeLift, getConditionsTableName, getCostMatrixTableName, getNumberOfConditions, getNumberOfPriors, getPriorsTableName, getTargetCategorySet, getTargetValueCount, restore, restore, test

 

Methods inherited from class oracle.dmt.odm.model.MiningModel
build, getBinCategoricalTableName, getBinNumericTableName, getMiningAlgorithm, getMiningFunction, getMiningFunctionSettings, getModelAlgorithm, getModelMiningFunction, getModelName, getSignature, listContents, listContents, listContents, listContents, remove, rename, storeLocationdata

 

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

 

Method Detail

getSupportVectorCount

public int getSupportVectorCount()
Returns count of Support Vectors resulting from the model build.
Returns:
m_supportVectorCount

apply

public static RecordInstance apply(Connection dmsConn,
RecordInstance record,
                                   java.lang.String modelName)
                                                  throws InvalidArgumentException,
                                                         java.sql.SQLException,
MiningOperationException,
ODMException
Performs the apply mining operation on a single record represented by an instance of RecordInstance. The result of this method is also returned in an instance of RecordInstance, which contains the top prediction and its probability (i.e., its probability is the highest among all predictions). The returned RecordInstance contains the default attribute instance values: score and probability. Note that no mining result is persisted for the result of this operation.
Parameters:
record - An instance of RecordInstance for input to apply
modelName - The model name to be used for apply
Returns:
RecordInstance - An instance of RecordInstance that contains two attribute instances: score and probability of the top prediction.
Throws:
InvalidArgumentException -
  • dmsConn is null,
  • record is null, or
  • modelName is null.
ODMException - when modelName is empty or exceeds 30 bytes in length
java.sql.SQLException - when an error occurs during the execution of apply operation
MiningOperationException
See Also:
RecordInstance, AttributeInstance

apply

public static RecordInstance apply(Connection dmsConn,
RecordInstance record,
                                   java.lang.String modelName,
MiningApplyOutput applyOutput)
                                                  throws InvalidArgumentException,
                                                         java.sql.SQLException,
MiningOperationException,
ODMException
Performs the apply mining operation on a single record represented by an instance of RecordInstance. The result of this method is also returned in an instance of RecordInstance, which contains attribute instances based on the specification in applyOutput. Note that no mining result is persisted for the result of this operation.
Parameters:
record - An instance of RecordInstance for input to apply
modelName - The model name to be used for apply
applyOutput - A specification on the format of apply output
Returns:
RecordInstance - An instance of RecordInstance that contains attribute instances based on the specification in applyOutput
Throws:
InvalidArgumentException -
  • dmsConn is null,
  • record is null,
  • modelName is null, or
  • applyOutput is null.
ODMException - when modelName is empty or exceeds 30 bytes in length
java.sql.SQLException - when an error occurs during the execution of apply operation
MiningOperationException
See Also:
RecordInstance, AttributeInstance, MiningApplyOutput

Copyright © 2003 Oracle Corporation. All Rights Reserved.