Module datarush.analytics
Class PMMLSupportVectorMachineModel
- java.lang.Object
-
- com.pervasive.datarush.analytics.pmml.PMMLModel
-
- com.pervasive.datarush.analytics.svm.PMMLSupportVectorMachineModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PMMLSupportVectorMachineModel.SvmRepresentation
Corresponds to the PMMLSVM-REPRESENTATION
enumeration.-
Nested classes/interfaces inherited from class com.pervasive.datarush.analytics.pmml.PMMLModel
PMMLModel.MiningFunction
-
-
Constructor Summary
Constructors Constructor Description PMMLSupportVectorMachineModel(PMMLModelSpec modelSpec)
Create a PMMLSupportVectorMachineModel for the given spec.PMMLSupportVectorMachineModel(Document document)
Create a PMMLSupportVectorMachineModel, initialized to the contents of the given PMML document.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buildModelElement(Element element)
Subclasses must implement this method to fill-in the contents of the model element.KernelType
getKernelType()
Returns the kernel type for the model.protected String
getModelElementName()
Return the element name of the primary model element associated with this PMMLString
getModelName()
Returns themodelName
attribute for the model.List<SupportVectorMachine>
getSupportVectorMachines()
Returns theSupportVectorMachine
elements of the model.PMMLSupportVectorMachineModel.SvmRepresentation
getSvmRepresentation()
Returns thesvmRepresentation
attribute for the model.VectorDictionary
getVectorDictionary()
Returns theVectorDictionary
element of the model.protected void
parseModelElement(Element element)
Parse the given model element into the respective model object.void
setKernelType(KernelType kernelType)
Sets the kernel type for the model.void
setModelName(String modelName)
Sets themodelName
attribute for the model.void
setSupportVectorMachines(List<SupportVectorMachine> supportVectorMachines)
Sets theSupportVectorMachine
elements of the model.void
setSvmRepresentation(PMMLSupportVectorMachineModel.SvmRepresentation svmRepresentation)
Sets thesvmRepresentation
attribute for the model.void
setVectorDictionary(VectorDictionary vectorDictionary)
Sets theVectorDictionary
element of the model.-
Methods inherited from class com.pervasive.datarush.analytics.pmml.PMMLModel
findModelElement, getAnnotationText, getModelExplanation, getModelSpec, getVersion, parse, setAnnotationText, setModelExplanation, setVersion, toPMML
-
-
-
-
Constructor Detail
-
PMMLSupportVectorMachineModel
public PMMLSupportVectorMachineModel(PMMLModelSpec modelSpec)
Create a PMMLSupportVectorMachineModel for the given spec.- Parameters:
modelSpec
- The PMMLModelSpec
-
PMMLSupportVectorMachineModel
public PMMLSupportVectorMachineModel(Document document)
Create a PMMLSupportVectorMachineModel, initialized to the contents of the given PMML document.- Parameters:
document
- The PMML document.
-
-
Method Detail
-
getModelName
public final String getModelName()
Returns themodelName
attribute for the model.- Returns:
- the
modelName
attribute for the model.
-
setModelName
public final void setModelName(String modelName)
Sets themodelName
attribute for the model.- Parameters:
modelName
- themodelName
attribute for the model.
-
getSvmRepresentation
public final PMMLSupportVectorMachineModel.SvmRepresentation getSvmRepresentation()
Returns thesvmRepresentation
attribute for the model.- Returns:
- the
svmRepresentation
attribute for the model.
-
setSvmRepresentation
public final void setSvmRepresentation(PMMLSupportVectorMachineModel.SvmRepresentation svmRepresentation)
Sets thesvmRepresentation
attribute for the model.- Parameters:
svmRepresentation
- thesvmRepresentation
attribute for the model.
-
getKernelType
public final KernelType getKernelType()
Returns the kernel type for the model.- Returns:
- the kernel type for the model.
-
setKernelType
public final void setKernelType(KernelType kernelType)
Sets the kernel type for the model.- Parameters:
kernelType
- the kernel type for the model.
-
getSupportVectorMachines
public final List<SupportVectorMachine> getSupportVectorMachines()
Returns theSupportVectorMachine
elements of the model.- Returns:
- the
SupportVectorMachine
elements of the model.
-
setSupportVectorMachines
public final void setSupportVectorMachines(List<SupportVectorMachine> supportVectorMachines)
Sets theSupportVectorMachine
elements of the model.- Parameters:
supportVectorMachines
- theSupportVectorMachine
elements of the model.
-
getVectorDictionary
public final VectorDictionary getVectorDictionary()
Returns theVectorDictionary
element of the model.- Returns:
- the
VectorDictionary
element of the model.
-
setVectorDictionary
public final void setVectorDictionary(VectorDictionary vectorDictionary)
Sets theVectorDictionary
element of the model.- Parameters:
vectorDictionary
- theVectorDictionary
element of the model.
-
buildModelElement
protected void buildModelElement(Element element)
Description copied from class:PMMLModel
Subclasses must implement this method to fill-in the contents of the model element. At the time this method is invoked, the element will have its name and MiningSchema sub-element populated.- Specified by:
buildModelElement
in classPMMLModel
- Parameters:
element
- the model element
-
getModelElementName
protected String getModelElementName()
Description copied from class:PMMLModel
Return the element name of the primary model element associated with this PMML- Specified by:
getModelElementName
in classPMMLModel
- Returns:
- the element name of the primary model element
-
parseModelElement
protected void parseModelElement(Element element)
Description copied from class:PMMLModel
Parse the given model element into the respective model object.- Specified by:
parseModelElement
in classPMMLModel
- Parameters:
element
- root element of model object
-
-