- java.lang.Object
-
- com.pervasive.datarush.analytics.pmml.PMMLModel
-
- com.pervasive.datarush.analytics.decisiontree.PMMLTreeModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPMMLTreeModel.MissingValueStrategyCorresponds to the PMMLMISSING-VALUE-STRATEGYenumeration.static classPMMLTreeModel.NoTrueChildStrategyCorresponds to the PMMLNO-TRUE-CHILD-STRATEGYenumeration.static classPMMLTreeModel.SplitCharacteristicCorresponds to the PMMLsplitCharacteristicenumeration.-
Nested classes/interfaces inherited from class com.pervasive.datarush.analytics.pmml.PMMLModel
PMMLModel.MiningFunction
-
-
Constructor Summary
Constructors Constructor Description PMMLTreeModel(PMMLModelSpec modelSpec)Create a PMMLTreeModel for the given spec.PMMLTreeModel(Document document)Create a PMMLTreeModel, initialized to the contents of the given PMML document.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildModelElement(Element element)Subclasses must implement this method to fill-in the contents of the model element.doublegetMissingValuePenalty()Returns the "missingValuePenalty" attribute for the model.PMMLTreeModel.MissingValueStrategygetMissingValueStrategy()Returns the "missingValueStrategy" attribute for the model.protected StringgetModelElementName()Return the element name of the primary model element associated with this PMMLStringgetModelName()Returns the "modelName" attribute for the model.PMMLTreeModel.NoTrueChildStrategygetNoTrueChildStrategy()Returns the "noTrueChildStrategy" attribute for the model.TreeNodegetRootNode()Returns the root node element of the modelPMMLTreeModel.SplitCharacteristicgetSplitCharacteristic()Returns the "splitCharacteristic" attribute for the model.protected voidparseModelElement(Element element)Parse the given model element into the respective model object.voidsetMissingValuePenalty(double missingValuePenalty)Sets the "missingValuePenalty" attribute for the model.voidsetMissingValueStrategy(PMMLTreeModel.MissingValueStrategy missingValueStrategy)Sets the "missingValueStrategy" attribute for the model.voidsetModelName(String modelName)Sets the "modelName" attribute for the model.voidsetNoTrueChildStrategy(PMMLTreeModel.NoTrueChildStrategy noTrueChildStrategy)Sets the "noTrueChildStrategy" attribute for the model.voidsetRootNode(TreeNode rootNode)Sets the root node element of the modelvoidsetSplitCharacteristic(PMMLTreeModel.SplitCharacteristic splitCharacteristic)Sets the "splitCharacteristic" attribute for the model.-
Methods inherited from class com.pervasive.datarush.analytics.pmml.PMMLModel
findModelElement, getAnnotationText, getModelExplanation, getModelSpec, getVersion, parse, setAnnotationText, setModelExplanation, setVersion, toPMML
-
-
-
-
Constructor Detail
-
PMMLTreeModel
public PMMLTreeModel(PMMLModelSpec modelSpec)
Create a PMMLTreeModel for the given spec.- Parameters:
modelSpec- The PMMLModelSpec
-
PMMLTreeModel
public PMMLTreeModel(Document document)
Create a PMMLTreeModel, initialized to the contents of the given PMML document.- Parameters:
document- The PMML document.
-
-
Method Detail
-
getModelName
public final String getModelName()
Returns the "modelName" attribute for the model.- Returns:
- the "modelName" attribute for the model.
-
setModelName
public final void setModelName(String modelName)
Sets the "modelName" attribute for the model.- Parameters:
modelName- the "modelName" attribute for the model.
-
getMissingValueStrategy
public final PMMLTreeModel.MissingValueStrategy getMissingValueStrategy()
Returns the "missingValueStrategy" attribute for the model.- Returns:
- the "missingValueStrategy" attribute for the model.
-
setMissingValueStrategy
public final void setMissingValueStrategy(PMMLTreeModel.MissingValueStrategy missingValueStrategy)
Sets the "missingValueStrategy" attribute for the model.- Parameters:
missingValueStrategy- the "missingValueStrategy" attribute for the model.
-
getMissingValuePenalty
public final double getMissingValuePenalty()
Returns the "missingValuePenalty" attribute for the model.- Returns:
- the "missingValuePenalty" attribute for the model.
-
setMissingValuePenalty
public final void setMissingValuePenalty(double missingValuePenalty)
Sets the "missingValuePenalty" attribute for the model.- Parameters:
missingValuePenalty- the "missingValuePenalty" attribute for the model.
-
getNoTrueChildStrategy
public final PMMLTreeModel.NoTrueChildStrategy getNoTrueChildStrategy()
Returns the "noTrueChildStrategy" attribute for the model.- Returns:
- the "noTrueChildStrategy" attribute for the model.
-
setNoTrueChildStrategy
public final void setNoTrueChildStrategy(PMMLTreeModel.NoTrueChildStrategy noTrueChildStrategy)
Sets the "noTrueChildStrategy" attribute for the model.- Parameters:
noTrueChildStrategy- the "noTrueChildStrategy" attribute for the model.
-
getSplitCharacteristic
public final PMMLTreeModel.SplitCharacteristic getSplitCharacteristic()
Returns the "splitCharacteristic" attribute for the model.- Returns:
- the "splitCharacteristic" attribute for the model.
-
setSplitCharacteristic
public final void setSplitCharacteristic(PMMLTreeModel.SplitCharacteristic splitCharacteristic)
Sets the "splitCharacteristic" attribute for the model.- Parameters:
splitCharacteristic- the "splitCharacteristic" attribute for the model.
-
getRootNode
public TreeNode getRootNode()
Returns the root node element of the model- Returns:
- the root node element of the model
-
setRootNode
public void setRootNode(TreeNode rootNode)
Sets the root node element of the model- Parameters:
rootNode- the root node element of the model
-
buildModelElement
protected void buildModelElement(Element element)
Description copied from class:PMMLModelSubclasses must implement this method to fill-in the contents of the model element. At the time this method is invoked, the element will have its name and MiningSchema sub-element populated.- Specified by:
buildModelElementin classPMMLModel- Parameters:
element- the model element
-
getModelElementName
protected String getModelElementName()
Description copied from class:PMMLModelReturn the element name of the primary model element associated with this PMML- Specified by:
getModelElementNamein classPMMLModel- Returns:
- the element name of the primary model element
-
parseModelElement
protected void parseModelElement(Element element)
Description copied from class:PMMLModelParse the given model element into the respective model object.- Specified by:
parseModelElementin classPMMLModel- Parameters:
element- root element of model object
-
-