- java.lang.Object
-
- com.pervasive.datarush.analytics.svm.SupportVectorMachine
-
public final class SupportVectorMachine extends Object
Object representation of theSupportVectorMachinePMML element.
-
-
Constructor Summary
Constructors Constructor Description SupportVectorMachine()Creates an emptySupportVectorMachine
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAbsoluteValue()Returns the value of theabsoluteValueattribute of theCoefficientssub-element.StringgetAlternateTargetCategory()Returns the value of thealternateTargetCategoryattribute.double[]getCoefficients()Returns the coefficients of the SVM.List<String>getSupportVectorIDs()Returns the list of support vector ids.StringgetTargetCategory()Returns the value of thetargetCategoryattribute.voidsetAbsoluteValue(double absoluteValue)Sets the value of theabsoluteValueattribute of theCoefficientssub-element.voidsetAlternateTargetCategory(String alternateTargetCategory)Sets the value of thealternateTargetCategoryattribute.voidsetCoefficients(double[] coefficients)Sets the coefficients of the SVM.voidsetSupportVectorIDs(List<String> ids)Sets the list of support vector ids.voidsetTargetCategory(String targetCategory)Sets the value of thetargetCategoryattribute.
-
-
-
Method Detail
-
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
public final String getTargetCategory()
Returns the value of thetargetCategoryattribute.- Returns:
- the value of the
targetCategoryattribute.
-
setTargetCategory
public final void setTargetCategory(String targetCategory)
Sets the value of thetargetCategoryattribute.- Parameters:
targetCategory- the value of thetargetCategoryattribute.
-
getAlternateTargetCategory
public final String 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
public final void setAlternateTargetCategory(String alternateTargetCategory)
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
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 thevectorIdattributes of theSupportVectorsub-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 thevectorIdattributes of theSupportVectorsub-elements.- Parameters:
ids- the list of support vector ids
-
-