public final class SupportVectorMachine extends Object
SupportVectorMachine
PMML element.Constructor and Description |
---|
SupportVectorMachine()
Creates an empty
SupportVectorMachine |
Modifier and Type | Method and Description |
---|---|
double |
getAbsoluteValue()
Returns the value of the
absoluteValue attribute of the
Coefficients sub-element. |
String |
getAlternateTargetCategory()
Returns the value of the
alternateTargetCategory 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 the
targetCategory attribute. |
void |
setAbsoluteValue(double absoluteValue)
Sets the value of the
absoluteValue attribute of the
Coefficients sub-element. |
void |
setAlternateTargetCategory(String alternateTargetCategory)
Sets the value of the
alternateTargetCategory 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 the
targetCategory attribute. |
public SupportVectorMachine()
SupportVectorMachine
public final double getAbsoluteValue()
absoluteValue
attribute of the
Coefficients
sub-element.absoluteValue
attributepublic final void setAbsoluteValue(double absoluteValue)
absoluteValue
attribute of the
Coefficients
sub-element.absoluteValue
- the value of the absoluteValue
attributepublic final double[] getCoefficients()
value
attributes of the
Coefficient
sub-elements.public final void setCoefficients(double[] coefficients)
value
attributes of the
Coefficient
sub-elements.coefficients
- the coefficients of the SVMpublic final String getTargetCategory()
targetCategory
attribute.targetCategory
attribute.public final void setTargetCategory(String targetCategory)
targetCategory
attribute.targetCategory
- the value of the targetCategory
attribute.public final String getAlternateTargetCategory()
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"/>
alternateTargetCategory
attribute.public final void setAlternateTargetCategory(String alternateTargetCategory)
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"/>
alternateTargetCategory
- the value of the alternateTargetCategory
attribute.public final List<String> getSupportVectorIDs()
coefficients
. These correspond to the
the values of the vectorId
attributes of the
SupportVector
sub-elements.public final void setSupportVectorIDs(List<String> ids)
coefficients
. These correspond to the
the values of the vectorId
attributes of the
SupportVector
sub-elements.ids
- the list of support vector idsCopyright © 2020 Actian Corporation. All rights reserved.