- java.lang.Object
-
- com.pervasive.datarush.analytics.svm.SupportVectorMachine
-
public final class SupportVectorMachine extends Object
Object representation of theSupportVectorMachine
PMML element.
-
-
Constructor Summary
Constructors Constructor Description SupportVectorMachine()
Creates an emptySupportVectorMachine
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAbsoluteValue()
Returns the value of theabsoluteValue
attribute of theCoefficients
sub-element.String
getAlternateTargetCategory()
Returns the value of thealternateTargetCategory
attribute.double[]
getCoefficients()
Returns the coefficients of the SVM.List<String>
getSupportVectorIDs()
Returns the list of support vector ids.String
getTargetCategory()
Returns the value of thetargetCategory
attribute.void
setAbsoluteValue(double absoluteValue)
Sets the value of theabsoluteValue
attribute of theCoefficients
sub-element.void
setAlternateTargetCategory(String alternateTargetCategory)
Sets the value of thealternateTargetCategory
attribute.void
setCoefficients(double[] coefficients)
Sets the coefficients of the SVM.void
setSupportVectorIDs(List<String> ids)
Sets the list of support vector ids.void
setTargetCategory(String targetCategory)
Sets the value of thetargetCategory
attribute.
-
-
-
Method Detail
-
getAbsoluteValue
public final double getAbsoluteValue()
Returns the value of theabsoluteValue
attribute of theCoefficients
sub-element.- Returns:
- the value of the
absoluteValue
attribute
-
setAbsoluteValue
public final void setAbsoluteValue(double absoluteValue)
Sets the value of theabsoluteValue
attribute of theCoefficients
sub-element.- Parameters:
absoluteValue
- the value of theabsoluteValue
attribute
-
getCoefficients
public final double[] getCoefficients()
Returns the coefficients of the SVM. These correspond to the the values of thevalue
attributes of theCoefficient
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 thevalue
attributes of theCoefficient
sub-elements.- Parameters:
coefficients
- the coefficients of the SVM
-
getTargetCategory
public final String getTargetCategory()
Returns the value of thetargetCategory
attribute.- Returns:
- the value of the
targetCategory
attribute.
-
setTargetCategory
public final void setTargetCategory(String targetCategory)
Sets the value of thetargetCategory
attribute.- Parameters:
targetCategory
- the value of thetargetCategory
attribute.
-
getAlternateTargetCategory
public final String getAlternateTargetCategory()
Returns the value of thealternateTargetCategory
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 thealternateTargetCategory
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 thealternateTargetCategory
attribute.
-
getSupportVectorIDs
public final List<String> getSupportVectorIDs()
Returns the list of support vector ids. This list is parallel to the array ofcoefficients
. These correspond to the the values of thevectorId
attributes of theSupportVector
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 ofcoefficients
. These correspond to the the values of thevectorId
attributes of theSupportVector
sub-elements.- Parameters:
ids
- the list of support vector ids
-
-