public class DecisionTree extends EmbeddedModel implements HasExtensions
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.dmg.org/PMML-4_3}Extension" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}Output" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}ModelStats" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}Targets" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}LocalTransformations" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}ResultField" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}Node"/>
</sequence>
<attribute name="modelName" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="functionName" use="required" type="{http://www.dmg.org/PMML-4_3}MINING-FUNCTION" />
<attribute name="algorithmName" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="missingValueStrategy" default="none">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="lastPrediction"/>
<enumeration value="nullPrediction"/>
<enumeration value="defaultChild"/>
<enumeration value="weightedConfidence"/>
<enumeration value="aggregateNodes"/>
<enumeration value="none"/>
</restriction>
</simpleType>
</attribute>
<attribute name="missingValuePenalty" type="{http://www.dmg.org/PMML-4_3}PROB-NUMBER" default="1.0" />
<attribute name="noTrueChildStrategy" default="returnNullPrediction">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="returnNullPrediction"/>
<enumeration value="returnLastPrediction"/>
</restriction>
</simpleType>
</attribute>
<attribute name="splitCharacteristic" default="multiSplit">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="binarySplit"/>
<enumeration value="multiSplit"/>
</restriction>
</simpleType>
</attribute>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
DecisionTree.MissingValueStrategy
Java class for null.
|
static class |
DecisionTree.NoTrueChildStrategy
Java class for null.
|
static class |
DecisionTree.SplitCharacteristic
Java class for null.
|
| Constructor and Description |
|---|
DecisionTree() |
DecisionTree(MiningFunction miningFunction,
Node node) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
DecisionTree |
addExtensions(Extension... extensions) |
DecisionTree |
addResultFields(ResultField... resultFields) |
String |
getAlgorithmName()
Gets the value of the algorithmName property.
|
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
LocalTransformations |
getLocalTransformations()
Gets the value of the localTransformations property.
|
MiningFunction |
getMiningFunction()
Gets the value of the miningFunction property.
|
Double |
getMissingValuePenalty()
Gets the value of the missingValuePenalty property.
|
DecisionTree.MissingValueStrategy |
getMissingValueStrategy()
Gets the value of the missingValueStrategy property.
|
String |
getModelName()
Gets the value of the modelName property.
|
ModelStats |
getModelStats()
Gets the value of the modelStats property.
|
Node |
getNode()
Gets the value of the node property.
|
DecisionTree.NoTrueChildStrategy |
getNoTrueChildStrategy()
Gets the value of the noTrueChildStrategy property.
|
Output |
getOutput()
Gets the value of the output property.
|
List<ResultField> |
getResultFields()
Gets the value of the resultFields property.
|
DecisionTree.SplitCharacteristic |
getSplitCharacteristic()
Gets the value of the splitCharacteristic property.
|
Targets |
getTargets()
Gets the value of the targets property.
|
boolean |
hasExtensions() |
boolean |
hasResultFields() |
DecisionTree |
setAlgorithmName(String algorithmName)
Sets the value of the algorithmName property.
|
DecisionTree |
setLocalTransformations(LocalTransformations localTransformations)
Sets the value of the localTransformations property.
|
DecisionTree |
setMiningFunction(MiningFunction miningFunction)
Sets the value of the miningFunction property.
|
DecisionTree |
setMissingValuePenalty(Double missingValuePenalty)
Sets the value of the missingValuePenalty property.
|
DecisionTree |
setMissingValueStrategy(DecisionTree.MissingValueStrategy missingValueStrategy)
Sets the value of the missingValueStrategy property.
|
DecisionTree |
setModelName(String modelName)
Sets the value of the modelName property.
|
DecisionTree |
setModelStats(ModelStats modelStats)
Sets the value of the modelStats property.
|
DecisionTree |
setNode(Node node)
Sets the value of the node property.
|
DecisionTree |
setNoTrueChildStrategy(DecisionTree.NoTrueChildStrategy noTrueChildStrategy)
Sets the value of the noTrueChildStrategy property.
|
DecisionTree |
setOutput(Output output)
Sets the value of the output property.
|
DecisionTree |
setSplitCharacteristic(DecisionTree.SplitCharacteristic splitCharacteristic)
Sets the value of the splitCharacteristic property.
|
DecisionTree |
setTargets(Targets targets)
Sets the value of the targets property.
|
getLocator, setLocator, traverse, traverse, traverse, traverse, traverseMixedpublic DecisionTree()
public DecisionTree(MiningFunction miningFunction, Node node)
public String getModelName()
getModelName in class EmbeddedModelStringpublic DecisionTree setModelName(String modelName)
setModelName in class EmbeddedModelmodelName - allowed object is
Stringpublic MiningFunction getMiningFunction()
getMiningFunction in class EmbeddedModelMiningFunctionpublic DecisionTree setMiningFunction(MiningFunction miningFunction)
setMiningFunction in class EmbeddedModelminingFunction - allowed object is
MiningFunctionpublic String getAlgorithmName()
Stringpublic DecisionTree setAlgorithmName(String algorithmName)
algorithmName - allowed object is
Stringpublic DecisionTree.MissingValueStrategy getMissingValueStrategy()
DecisionTree.MissingValueStrategypublic DecisionTree setMissingValueStrategy(DecisionTree.MissingValueStrategy missingValueStrategy)
missingValueStrategy - allowed object is
DecisionTree.MissingValueStrategypublic Double getMissingValuePenalty()
Doublepublic DecisionTree setMissingValuePenalty(Double missingValuePenalty)
missingValuePenalty - allowed object is
Doublepublic DecisionTree.NoTrueChildStrategy getNoTrueChildStrategy()
DecisionTree.NoTrueChildStrategypublic DecisionTree setNoTrueChildStrategy(DecisionTree.NoTrueChildStrategy noTrueChildStrategy)
noTrueChildStrategy - allowed object is
DecisionTree.NoTrueChildStrategypublic DecisionTree.SplitCharacteristic getSplitCharacteristic()
DecisionTree.SplitCharacteristicpublic DecisionTree setSplitCharacteristic(DecisionTree.SplitCharacteristic splitCharacteristic)
splitCharacteristic - allowed object is
DecisionTree.SplitCharacteristicpublic List<Extension> getExtensions()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the extensions property.
For example, to add a new item, do as follows:
getExtensions().add(newItem);
Objects of the following type(s) are allowed in the list
Extension
getExtensions in interface HasExtensionspublic Output getOutput()
getOutput in class EmbeddedModelOutputpublic DecisionTree setOutput(Output output)
setOutput in class EmbeddedModeloutput - allowed object is
Outputpublic ModelStats getModelStats()
getModelStats in class EmbeddedModelModelStatspublic DecisionTree setModelStats(ModelStats modelStats)
setModelStats in class EmbeddedModelmodelStats - allowed object is
ModelStatspublic Targets getTargets()
getTargets in class EmbeddedModelTargetspublic DecisionTree setTargets(Targets targets)
setTargets in class EmbeddedModeltargets - allowed object is
Targetspublic LocalTransformations getLocalTransformations()
getLocalTransformations in class EmbeddedModelLocalTransformationspublic DecisionTree setLocalTransformations(LocalTransformations localTransformations)
setLocalTransformations in class EmbeddedModellocalTransformations - allowed object is
LocalTransformationspublic List<ResultField> getResultFields()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the resultFields property.
For example, to add a new item, do as follows:
getResultFields().add(newItem);
Objects of the following type(s) are allowed in the list
ResultField
public DecisionTree setNode(Node node)
node - allowed object is
Nodepublic boolean hasExtensions()
hasExtensions in interface HasExtensionspublic DecisionTree addExtensions(Extension... extensions)
public boolean hasResultFields()
public DecisionTree addResultFields(ResultField... resultFields)
public VisitorAction accept(Visitor visitor)
Copyright © 2016 University of Tartu. All rights reserved.