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 classTreeNode.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 ParseFieldDECISION_TYPEstatic ParseFieldDEFAULT_LEFTstatic ParseFieldLEAF_VALUEstatic ParseFieldLEFT_CHILDstatic java.lang.StringNAMEstatic ParseFieldNODE_INDEXstatic ParseFieldRIGHT_CHILDstatic ParseFieldSPLIT_FEATUREstatic ParseFieldSPLIT_GAINstatic ParseFieldTHRESHOLD-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description static TreeNode.Builderbuilder(int nodeIndex)booleanequals(java.lang.Object o)static TreeNode.BuilderfromXContent(XContentParser parser)java.lang.DoublegetLeafValue()java.lang.IntegergetLeftChild()java.lang.IntegergetNodeIndex()OperatorgetOperator()java.lang.IntegergetRightChild()java.lang.IntegergetSplitFeature()java.lang.DoublegetSplitGain()java.lang.DoublegetThreshold()inthashCode()java.lang.BooleanisDefaultLeft()java.lang.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
DECISION_TYPE
public static final ParseField DECISION_TYPE
-
THRESHOLD
public static final ParseField THRESHOLD
-
LEFT_CHILD
public static final ParseField LEFT_CHILD
-
RIGHT_CHILD
public static final ParseField RIGHT_CHILD
-
DEFAULT_LEFT
public static final ParseField DEFAULT_LEFT
-
SPLIT_FEATURE
public static final ParseField SPLIT_FEATURE
-
NODE_INDEX
public static final ParseField NODE_INDEX
-
SPLIT_GAIN
public static final ParseField SPLIT_GAIN
-
LEAF_VALUE
public static final ParseField LEAF_VALUE
-
-
Method Detail
-
fromXContent
public static TreeNode.Builder fromXContent(XContentParser parser)
-
getOperator
public Operator 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.lang.Double getLeafValue()
-
isDefaultLeft
public java.lang.Boolean isDefaultLeft()
-
getLeftChild
public java.lang.Integer getLeftChild()
-
getRightChild
public java.lang.Integer getRightChild()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static TreeNode.Builder builder(int nodeIndex)
-
-