Class SupportVectorMachine


  • public final class SupportVectorMachine
    extends Object
    Object representation of the SupportVectorMachine PMML element.
    • Constructor Detail

      • SupportVectorMachine

        public SupportVectorMachine()
        Creates an empty SupportVectorMachine
    • Method Detail

      • getAbsoluteValue

        public final double getAbsoluteValue()
        Returns the value of the absoluteValue attribute of the Coefficients sub-element.
        Returns:
        the value of the absoluteValue attribute
      • setAbsoluteValue

        public final void setAbsoluteValue​(double absoluteValue)
        Sets the value of the absoluteValue attribute of the Coefficients sub-element.
        Parameters:
        absoluteValue - the value of the absoluteValue attribute
      • getCoefficients

        public final double[] getCoefficients()
        Returns the coefficients of the SVM. These correspond to the the values of the value attributes of the Coefficient sub-elements.
        Returns:
        the coefficients of the SVM
      • setCoefficients

        public final void setCoefficients​(double[] coefficients)
        Sets the coefficients of the SVM. These correspond to the the values of the value attributes of the Coefficient sub-elements.
        Parameters:
        coefficients - the coefficients of the SVM
      • getTargetCategory

        public final String getTargetCategory()
        Returns the value of the targetCategory attribute.
        Returns:
        the value of the targetCategory attribute.
      • setTargetCategory

        public final void setTargetCategory​(String targetCategory)
        Sets the value of the targetCategory attribute.
        Parameters:
        targetCategory - the value of the targetCategory attribute.
      • getAlternateTargetCategory

        public final String getAlternateTargetCategory()
        Returns the value of the alternateTargetCategory attribute.

        NOTE: The alternateTargetCategory is part of the PMML 4.0 specification. In order to operate in PMML 3.2, we currently store this value as a PMML extension. For example:

             <Extension name="alternateTargetCategory" value="3"/>
        Returns:
        the value of the alternateTargetCategory attribute.
      • setAlternateTargetCategory

        public final void setAlternateTargetCategory​(String alternateTargetCategory)
        Sets the value of the alternateTargetCategory attribute.

        NOTE: The alternateTargetCategory is part of the PMML 4.0 specification. In order to operate in PMML 3.2, we currently store this value as a PMML extension. For example:

             <Extension name="alternateTargetCategory" value="3"/>
        Parameters:
        alternateTargetCategory - the value of the alternateTargetCategory attribute.
      • getSupportVectorIDs

        public final List<String> getSupportVectorIDs()
        Returns the list of support vector ids. This list is parallel to the array of coefficients. These correspond to the the values of the vectorId attributes of the SupportVector sub-elements.
        Returns:
        the list of support vector ids
      • setSupportVectorIDs

        public final void setSupportVectorIDs​(List<String> ids)
        Sets the list of support vector ids. This list is parallel to the array of coefficients. These correspond to the the values of the vectorId attributes of the SupportVector sub-elements.
        Parameters:
        ids - the list of support vector ids