java.lang.Object
com.pervasive.datarush.analytics.pmml.PMMLModel
com.pervasive.datarush.analytics.decisiontree.PMMLTreeModel
PMML TreeModel. Object representation of the standard PMML TreeModel defined here.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCorresponds to the PMMLMISSING-VALUE-STRATEGYenumeration.static enumCorresponds to the PMMLNO-TRUE-CHILD-STRATEGYenumeration.static enumCorresponds to the PMMLsplitCharacteristicenumeration.Nested classes/interfaces inherited from class com.pervasive.datarush.analytics.pmml.PMMLModel
PMMLModel.MiningFunction -
Constructor Summary
ConstructorsConstructorDescriptionPMMLTreeModel(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
Modifier and TypeMethodDescriptionprotected voidbuildModelElement(Element element) Subclasses must implement this method to fill-in the contents of the model element.final doubleReturns the "missingValuePenalty" attribute for the model.Returns the "missingValueStrategy" attribute for the model.protected StringReturn the element name of the primary model element associated with this PMMLfinal StringReturns the "modelName" attribute for the model.Returns the "noTrueChildStrategy" attribute for the model.Returns the root node element of the modelReturns the "splitCharacteristic" attribute for the model.protected voidparseModelElement(Element element) Parse the given model element into the respective model object.final voidsetMissingValuePenalty(double missingValuePenalty) Sets the "missingValuePenalty" attribute for the model.final voidsetMissingValueStrategy(PMMLTreeModel.MissingValueStrategy missingValueStrategy) Sets the "missingValueStrategy" attribute for the model.final voidsetModelName(String modelName) Sets the "modelName" attribute for the model.final voidsetNoTrueChildStrategy(PMMLTreeModel.NoTrueChildStrategy noTrueChildStrategy) Sets the "noTrueChildStrategy" attribute for the model.voidsetRootNode(TreeNode rootNode) Sets the root node element of the modelfinal voidsetSplitCharacteristic(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 Details
-
PMMLTreeModel
Create a PMMLTreeModel for the given spec.- Parameters:
modelSpec- The PMMLModelSpec
-
PMMLTreeModel
Create a PMMLTreeModel, initialized to the contents of the given PMML document.- Parameters:
document- The PMML document.
-
-
Method Details
-
getModelName
Returns the "modelName" attribute for the model.- Returns:
- the "modelName" attribute for the model.
-
setModelName
Sets the "modelName" attribute for the model.- Parameters:
modelName- the "modelName" attribute for the model.
-
getMissingValueStrategy
Returns the "missingValueStrategy" attribute for the model.- Returns:
- the "missingValueStrategy" attribute for the model.
-
setMissingValueStrategy
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
Returns the "noTrueChildStrategy" attribute for the model.- Returns:
- the "noTrueChildStrategy" attribute for the model.
-
setNoTrueChildStrategy
Sets the "noTrueChildStrategy" attribute for the model.- Parameters:
noTrueChildStrategy- the "noTrueChildStrategy" attribute for the model.
-
getSplitCharacteristic
Returns the "splitCharacteristic" attribute for the model.- Returns:
- the "splitCharacteristic" attribute for the model.
-
setSplitCharacteristic
Sets the "splitCharacteristic" attribute for the model.- Parameters:
splitCharacteristic- the "splitCharacteristic" attribute for the model.
-
getRootNode
Returns the root node element of the model- Returns:
- the root node element of the model
-
setRootNode
Sets the root node element of the model- Parameters:
rootNode- the root node element of the model
-
buildModelElement
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
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
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
-