Class TreeNode
java.lang.Object
org.elasticsearch.client.ml.inference.trainedmodel.tree.TreeNode
- All Implemented Interfaces:
ToXContent
,ToXContentObject
public class TreeNode extends java.lang.Object implements ToXContentObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TreeNode.Builder
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
Fields Modifier and Type Field Description static ParseField
DECISION_TYPE
static ParseField
DEFAULT_LEFT
static ParseField
LEAF_VALUE
static ParseField
LEFT_CHILD
static java.lang.String
NAME
static ParseField
NODE_INDEX
static ParseField
NUMBER_SAMPLES
static ParseField
RIGHT_CHILD
static ParseField
SPLIT_FEATURE
static ParseField
SPLIT_GAIN
static ParseField
THRESHOLD
-
Method Summary
Modifier and Type Method Description static TreeNode.Builder
builder(int nodeIndex)
boolean
equals(java.lang.Object o)
static TreeNode.Builder
fromXContent(XContentParser parser)
java.util.List<java.lang.Double>
getLeafValue()
java.lang.Integer
getLeftChild()
java.lang.Integer
getNodeIndex()
java.lang.Long
getNumberSamples()
Operator
getOperator()
java.lang.Integer
getRightChild()
java.lang.Integer
getSplitFeature()
java.lang.Double
getSplitGain()
java.lang.Double
getThreshold()
int
hashCode()
java.lang.Boolean
isDefaultLeft()
java.lang.String
toString()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
-
Field Details
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
DECISION_TYPE
-
THRESHOLD
-
LEFT_CHILD
-
RIGHT_CHILD
-
DEFAULT_LEFT
-
SPLIT_FEATURE
-
NODE_INDEX
-
SPLIT_GAIN
-
LEAF_VALUE
-
NUMBER_SAMPLES
-
-
Method Details
-
fromXContent
-
getOperator
-
getThreshold
public java.lang.Double getThreshold() -
getSplitFeature
public java.lang.Integer getSplitFeature() -
getNodeIndex
public java.lang.Integer getNodeIndex() -
getSplitGain
public java.lang.Double getSplitGain() -
getLeafValue
public java.util.List<java.lang.Double> getLeafValue() -
isDefaultLeft
public java.lang.Boolean isDefaultLeft() -
getLeftChild
public java.lang.Integer getLeftChild() -
getRightChild
public java.lang.Integer getRightChild() -
getNumberSamples
public java.lang.Long getNumberSamples() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
builder
-