java.lang.Object
com.pervasive.datarush.analytics.svm.SupportVectorMachine
Object representation of the
SupportVectorMachine PMML element.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal doubleReturns the value of theabsoluteValueattribute of theCoefficientssub-element.final StringReturns the value of thealternateTargetCategoryattribute.final double[]Returns the coefficients of the SVM.Returns the list of support vector ids.final StringReturns the value of thetargetCategoryattribute.final voidsetAbsoluteValue(double absoluteValue) Sets the value of theabsoluteValueattribute of theCoefficientssub-element.final voidsetAlternateTargetCategory(String alternateTargetCategory) Sets the value of thealternateTargetCategoryattribute.final voidsetCoefficients(double[] coefficients) Sets the coefficients of the SVM.final voidsetSupportVectorIDs(List<String> ids) Sets the list of support vector ids.final voidsetTargetCategory(String targetCategory) Sets the value of thetargetCategoryattribute.
-
Constructor Details
-
SupportVectorMachine
public SupportVectorMachine()Creates an emptySupportVectorMachine
-
-
Method Details
-
getAbsoluteValue
public final double getAbsoluteValue()Returns the value of theabsoluteValueattribute of theCoefficientssub-element.- Returns:
- the value of the
absoluteValueattribute
-
setAbsoluteValue
public final void setAbsoluteValue(double absoluteValue) Sets the value of theabsoluteValueattribute of theCoefficientssub-element.- Parameters:
absoluteValue- the value of theabsoluteValueattribute
-
getCoefficients
public final double[] getCoefficients()Returns the coefficients of the SVM. These correspond to the the values of thevalueattributes of theCoefficientsub-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 thevalueattributes of theCoefficientsub-elements.- Parameters:
coefficients- the coefficients of the SVM
-
getTargetCategory
Returns the value of thetargetCategoryattribute.- Returns:
- the value of the
targetCategoryattribute.
-
setTargetCategory
Sets the value of thetargetCategoryattribute.- Parameters:
targetCategory- the value of thetargetCategoryattribute.
-
getAlternateTargetCategory
Returns the value of thealternateTargetCategoryattribute.NOTE: The
alternateTargetCategoryis 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
alternateTargetCategoryattribute.
-
setAlternateTargetCategory
Sets the value of thealternateTargetCategoryattribute.NOTE: The
alternateTargetCategoryis 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 thealternateTargetCategoryattribute.
-
getSupportVectorIDs
Returns the list of support vector ids. This list is parallel to the array ofcoefficients. These correspond to the the values of thevectorIdattributes of theSupportVectorsub-elements.- Returns:
- the list of support vector ids
-
setSupportVectorIDs
Sets the list of support vector ids. This list is parallel to the array ofcoefficients. These correspond to the the values of thevectorIdattributes of theSupportVectorsub-elements.- Parameters:
ids- the list of support vector ids
-