public class SupportVectorMachineModel extends PMMLClassifier implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_algorithmName
The algorithm name (if defined)
|
protected int |
m_alternateBinaryTargetCategory
The other class index (in the case of a single binary SVM - PMML 3.2).
|
protected weka.classifiers.pmml.consumer.SupportVectorMachineModel.classificationMethod |
m_classificationMethod
The classification method (PMML 4.0)
|
protected weka.classifiers.pmml.consumer.NeuralNetwork.MiningFunction |
m_functionType
The mining function
|
protected weka.classifiers.pmml.consumer.SupportVectorMachineModel.Kernel |
m_kernel
The kernel function to use
|
protected java.util.List<weka.classifiers.pmml.consumer.SupportVectorMachineModel.SupportVectorMachine> |
m_machines
The individual binary SVMs
|
protected java.lang.String |
m_modelName
The model name (if defined)
|
protected weka.classifiers.pmml.consumer.SupportVectorMachineModel.SVM_representation |
m_svmRepresentation
Do we have support vectors, or just attribute coefficients for a linear machine?
|
protected double |
m_threshold
PMML 4.0 threshold value
|
protected VectorDictionary |
m_vectorDictionary
The dictionary of support vectors
|
m_creatorApplication, m_dataDictionary, m_fieldsMap, m_initialized, m_log, m_miningSchema, m_pmmlVersionBATCH_SIZE_DEFAULT, m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULT| Constructor and Description |
|---|
SupportVectorMachineModel(org.w3c.dom.Element model,
Instances dataDictionary,
MiningSchema miningSchema)
Construct a new SupportVectorMachineModel encapsulating the information provided
in the PMML document.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
distributionForInstance(Instance inst)
Classifies the given test instance.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
toString()
Get a textual description of this SupportVectorMachineModel
|
buildClassifier, done, getCreatorApplication, getDataDictionary, getFieldsMappingString, getLog, getMiningSchema, getPMMLVersion, mapToMiningSchema, setCreatorApplication, setLog, setPMMLVersionbatchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getCapabilities, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getOptions, implementsMoreEfficientBatchPrediction, listOptions, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces, setOptionsprotected weka.classifiers.pmml.consumer.NeuralNetwork.MiningFunction m_functionType
protected weka.classifiers.pmml.consumer.SupportVectorMachineModel.classificationMethod m_classificationMethod
protected java.lang.String m_modelName
protected java.lang.String m_algorithmName
protected VectorDictionary m_vectorDictionary
protected weka.classifiers.pmml.consumer.SupportVectorMachineModel.Kernel m_kernel
protected java.util.List<weka.classifiers.pmml.consumer.SupportVectorMachineModel.SupportVectorMachine> m_machines
protected int m_alternateBinaryTargetCategory
protected weka.classifiers.pmml.consumer.SupportVectorMachineModel.SVM_representation m_svmRepresentation
protected double m_threshold
public SupportVectorMachineModel(org.w3c.dom.Element model,
Instances dataDictionary,
MiningSchema miningSchema)
throws java.lang.Exception
model - the SVM element from the PMML documentdataDictionary - the data dictionaryminingSchema - the mining schemajava.lang.Exception - if the model can't be constructed from the PMMLpublic double[] distributionForInstance(Instance inst) throws java.lang.Exception
distributionForInstance in interface ClassifierdistributionForInstance in class AbstractClassifierinst - the instance to be classifiedjava.lang.Exception - if an error occurred during the predictionpublic java.lang.String getRevision()
AbstractClassifiergetRevision in interface RevisionHandlergetRevision in class AbstractClassifierpublic java.lang.String toString()
toString in class java.lang.Object