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 classPMMLSupportVectorMachineModel.SvmRepresentationCorresponds to the PMMLSVM-REPRESENTATIONenumeration.-
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 voidbuildModelElement(Element element)Subclasses must implement this method to fill-in the contents of the model element.KernelTypegetKernelType()Returns the kernel type for the model.protected StringgetModelElementName()Return the element name of the primary model element associated with this PMMLStringgetModelName()Returns themodelNameattribute for the model.List<SupportVectorMachine>getSupportVectorMachines()Returns theSupportVectorMachineelements of the model.PMMLSupportVectorMachineModel.SvmRepresentationgetSvmRepresentation()Returns thesvmRepresentationattribute for the model.VectorDictionarygetVectorDictionary()Returns theVectorDictionaryelement of the model.protected voidparseModelElement(Element element)Parse the given model element into the respective model object.voidsetKernelType(KernelType kernelType)Sets the kernel type for the model.voidsetModelName(String modelName)Sets themodelNameattribute for the model.voidsetSupportVectorMachines(List<SupportVectorMachine> supportVectorMachines)Sets theSupportVectorMachineelements of the model.voidsetSvmRepresentation(PMMLSupportVectorMachineModel.SvmRepresentation svmRepresentation)Sets thesvmRepresentationattribute for the model.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 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 themodelNameattribute for the model.- Returns:
- the
modelNameattribute for the model.
-
setModelName
public final void setModelName(String modelName)
Sets themodelNameattribute for the model.- Parameters:
modelName- themodelNameattribute for the model.
-
getSvmRepresentation
public final PMMLSupportVectorMachineModel.SvmRepresentation 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
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 theSupportVectorMachineelements of the model.- Returns:
- the
SupportVectorMachineelements of the model.
-
setSupportVectorMachines
public final void setSupportVectorMachines(List<SupportVectorMachine> supportVectorMachines)
Sets theSupportVectorMachineelements of the model.- Parameters:
supportVectorMachines- theSupportVectorMachineelements of the model.
-
getVectorDictionary
public final VectorDictionary getVectorDictionary()
Returns theVectorDictionaryelement of the model.- Returns:
- the
VectorDictionaryelement of the model.
-
setVectorDictionary
public final void setVectorDictionary(VectorDictionary vectorDictionary)
Sets theVectorDictionaryelement of the model.- Parameters:
vectorDictionary- theVectorDictionaryelement of the model.
-
buildModelElement
protected void buildModelElement(Element element)
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
protected String 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
protected void parseModelElement(Element element)
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
-
-