Class PMMLSupportVectorMachineModel

java.lang.Object
com.pervasive.datarush.analytics.pmml.PMMLModel
com.pervasive.datarush.analytics.svm.PMMLSupportVectorMachineModel

public final class PMMLSupportVectorMachineModel extends PMMLModel
PMML SupportVectorMachineModel. Object representation of the standard PMML SupportVectorMachineModel defined here.
  • Constructor Details

    • 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 Details

    • getModelName

      public final String getModelName()
      Returns the modelName attribute for the model.
      Returns:
      the modelName attribute for the model.
    • setModelName

      public final void setModelName(String modelName)
      Sets the modelName attribute for the model.
      Parameters:
      modelName - the modelName attribute for the model.
    • getSvmRepresentation

      public final PMMLSupportVectorMachineModel.SvmRepresentation getSvmRepresentation()
      Returns the svmRepresentation attribute for the model.
      Returns:
      the svmRepresentation attribute for the model.
    • setSvmRepresentation

      public final void setSvmRepresentation(PMMLSupportVectorMachineModel.SvmRepresentation svmRepresentation)
      Sets the svmRepresentation attribute for the model.
      Parameters:
      svmRepresentation - the svmRepresentation 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 the SupportVectorMachine elements of the model.
      Returns:
      the SupportVectorMachine elements of the model.
    • setSupportVectorMachines

      public final void setSupportVectorMachines(List<SupportVectorMachine> supportVectorMachines)
      Sets the SupportVectorMachine elements of the model.
      Parameters:
      supportVectorMachines - the SupportVectorMachine elements of the model.
    • getVectorDictionary

      public final VectorDictionary getVectorDictionary()
      Returns the VectorDictionary element of the model.
      Returns:
      the VectorDictionary element of the model.
    • setVectorDictionary

      public final void setVectorDictionary(VectorDictionary vectorDictionary)
      Sets the VectorDictionary element of the model.
      Parameters:
      vectorDictionary - the VectorDictionary 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 class PMMLModel
      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 class PMMLModel
      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 class PMMLModel
      Parameters:
      element - root element of model object