Module datarush.analytics
Class PMMLSupportVectorMachineModel
java.lang.Object
com.pervasive.datarush.analytics.pmml.PMMLModel
com.pervasive.datarush.analytics.svm.PMMLSupportVectorMachineModel
PMML SupportVectorMachineModel. Object representation of the standard PMML SupportVectorMachineModel defined here.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCorresponds to the PMMLSVM-REPRESENTATIONenumeration.Nested classes/interfaces inherited from class com.pervasive.datarush.analytics.pmml.PMMLModel
PMMLModel.MiningFunction -
Constructor Summary
ConstructorsConstructorDescriptionPMMLSupportVectorMachineModel(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
Modifier and TypeMethodDescriptionprotected voidbuildModelElement(Element element) Subclasses must implement this method to fill-in the contents of the model element.final KernelTypeReturns the kernel type for the model.protected StringReturn the element name of the primary model element associated with this PMMLfinal StringReturns themodelNameattribute for the model.final List<SupportVectorMachine>Returns theSupportVectorMachineelements of the model.Returns thesvmRepresentationattribute for the model.final VectorDictionaryReturns theVectorDictionaryelement of the model.protected voidparseModelElement(Element element) Parse the given model element into the respective model object.final voidsetKernelType(KernelType kernelType) Sets the kernel type for the model.final voidsetModelName(String modelName) Sets themodelNameattribute for the model.final voidsetSupportVectorMachines(List<SupportVectorMachine> supportVectorMachines) Sets theSupportVectorMachineelements of the model.final voidsetSvmRepresentation(PMMLSupportVectorMachineModel.SvmRepresentation svmRepresentation) Sets thesvmRepresentationattribute for the model.final voidsetVectorDictionary(VectorDictionary vectorDictionary) Sets theVectorDictionaryelement of the model.Methods inherited from class com.pervasive.datarush.analytics.pmml.PMMLModel
findModelElement, getAnnotationText, getModelExplanation, getModelSpec, getVersion, parse, setAnnotationText, setModelExplanation, setVersion, toPMML
-
Constructor Details
-
PMMLSupportVectorMachineModel
Create a PMMLSupportVectorMachineModel for the given spec.- Parameters:
modelSpec- The PMMLModelSpec
-
PMMLSupportVectorMachineModel
Create a PMMLSupportVectorMachineModel, initialized to the contents of the given PMML document.- Parameters:
document- The PMML document.
-
-
Method Details
-
getModelName
Returns themodelNameattribute for the model.- Returns:
- the
modelNameattribute for the model.
-
setModelName
Sets themodelNameattribute for the model.- Parameters:
modelName- themodelNameattribute for the model.
-
getSvmRepresentation
Returns thesvmRepresentationattribute for the model.- Returns:
- the
svmRepresentationattribute for the model.
-
setSvmRepresentation
public final void setSvmRepresentation(PMMLSupportVectorMachineModel.SvmRepresentation svmRepresentation) Sets thesvmRepresentationattribute for the model.- Parameters:
svmRepresentation- thesvmRepresentationattribute for the model.
-
getKernelType
Returns the kernel type for the model.- Returns:
- the kernel type for the model.
-
setKernelType
Sets the kernel type for the model.- Parameters:
kernelType- the kernel type for the model.
-
getSupportVectorMachines
Returns theSupportVectorMachineelements of the model.- Returns:
- the
SupportVectorMachineelements of the model.
-
setSupportVectorMachines
Sets theSupportVectorMachineelements of the model.- Parameters:
supportVectorMachines- theSupportVectorMachineelements of the model.
-
getVectorDictionary
Returns theVectorDictionaryelement of the model.- Returns:
- the
VectorDictionaryelement of the model.
-
setVectorDictionary
Sets theVectorDictionaryelement of the model.- Parameters:
vectorDictionary- theVectorDictionaryelement of the model.
-
buildModelElement
Description copied from class:PMMLModelSubclasses 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:
buildModelElementin classPMMLModel- Parameters:
element- the model element
-
getModelElementName
Description copied from class:PMMLModelReturn the element name of the primary model element associated with this PMML- Specified by:
getModelElementNamein classPMMLModel- Returns:
- the element name of the primary model element
-
parseModelElement
Description copied from class:PMMLModelParse the given model element into the respective model object.- Specified by:
parseModelElementin classPMMLModel- Parameters:
element- root element of model object
-