Modifier and Type | Class and Description |
---|---|
static class |
PMMLTreeModel.MissingValueStrategy
Corresponds to the PMML
MISSING-VALUE-STRATEGY enumeration. |
static class |
PMMLTreeModel.NoTrueChildStrategy
Corresponds to the PMML
NO-TRUE-CHILD-STRATEGY enumeration. |
static class |
PMMLTreeModel.SplitCharacteristic
Corresponds to the PMML
splitCharacteristic enumeration. |
PMMLModel.MiningFunction
Constructor and Description |
---|
PMMLTreeModel(Document document)
Create a PMMLTreeModel, initialized to the contents of the given PMML document.
|
PMMLTreeModel(PMMLModelSpec modelSpec)
Create a PMMLTreeModel for the given spec.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildModelElement(Element element)
Subclasses must implement this method to fill-in the contents
of the model element.
|
double |
getMissingValuePenalty()
Returns the "missingValuePenalty" attribute for the model.
|
PMMLTreeModel.MissingValueStrategy |
getMissingValueStrategy()
Returns the "missingValueStrategy" attribute for the model.
|
protected String |
getModelElementName()
Return the element name of the primary model element associated with
this PMML
|
String |
getModelName()
Returns the "modelName" attribute for the model.
|
PMMLTreeModel.NoTrueChildStrategy |
getNoTrueChildStrategy()
Returns the "noTrueChildStrategy" attribute for the model.
|
TreeNode |
getRootNode()
Returns the root node element of the model
|
PMMLTreeModel.SplitCharacteristic |
getSplitCharacteristic()
Returns the "splitCharacteristic" attribute for the model.
|
protected void |
parseModelElement(Element element)
Parse the given model element into the respective model object.
|
void |
setMissingValuePenalty(double missingValuePenalty)
Sets the "missingValuePenalty" attribute for the model.
|
void |
setMissingValueStrategy(PMMLTreeModel.MissingValueStrategy missingValueStrategy)
Sets the "missingValueStrategy" attribute for the model.
|
void |
setModelName(String modelName)
Sets the "modelName" attribute for the model.
|
void |
setNoTrueChildStrategy(PMMLTreeModel.NoTrueChildStrategy noTrueChildStrategy)
Sets the "noTrueChildStrategy" attribute for the model.
|
void |
setRootNode(TreeNode rootNode)
Sets the root node element of the model
|
void |
setSplitCharacteristic(PMMLTreeModel.SplitCharacteristic splitCharacteristic)
Sets the "splitCharacteristic" attribute for the model.
|
findModelElement, getAnnotationText, getModelExplanation, getModelSpec, getVersion, parse, setAnnotationText, setModelExplanation, setVersion, toPMML
public PMMLTreeModel(PMMLModelSpec modelSpec)
modelSpec
- The PMMLModelSpecpublic PMMLTreeModel(Document document)
document
- The PMML document.public final String getModelName()
public final void setModelName(String modelName)
modelName
- the "modelName" attribute for the model.public final PMMLTreeModel.MissingValueStrategy getMissingValueStrategy()
public final void setMissingValueStrategy(PMMLTreeModel.MissingValueStrategy missingValueStrategy)
missingValueStrategy
- the "missingValueStrategy" attribute for the model.public final double getMissingValuePenalty()
public final void setMissingValuePenalty(double missingValuePenalty)
missingValuePenalty
- the "missingValuePenalty" attribute for the model.public final PMMLTreeModel.NoTrueChildStrategy getNoTrueChildStrategy()
public final void setNoTrueChildStrategy(PMMLTreeModel.NoTrueChildStrategy noTrueChildStrategy)
noTrueChildStrategy
- the "noTrueChildStrategy" attribute for the model.public final PMMLTreeModel.SplitCharacteristic getSplitCharacteristic()
public final void setSplitCharacteristic(PMMLTreeModel.SplitCharacteristic splitCharacteristic)
splitCharacteristic
- the "splitCharacteristic" attribute for the model.public TreeNode getRootNode()
public void setRootNode(TreeNode rootNode)
rootNode
- the root node element of the modelprotected void buildModelElement(Element element)
PMMLModel
buildModelElement
in class PMMLModel
element
- the model elementprotected String getModelElementName()
PMMLModel
getModelElementName
in class PMMLModel
protected void parseModelElement(Element element)
PMMLModel
parseModelElement
in class PMMLModel
element
- root element of model objectCopyright © 2021 Actian Corporation. All rights reserved.