java.lang.Object
org.elasticsearch.client.ml.inference.trainedmodel.tree.TreeNode
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class TreeNode extends Object implements org.elasticsearch.xcontent.ToXContentObject
  • Field Details

    • NAME

      public static final String NAME
      See Also:
    • DECISION_TYPE

      public static final org.elasticsearch.xcontent.ParseField DECISION_TYPE
    • THRESHOLD

      public static final org.elasticsearch.xcontent.ParseField THRESHOLD
    • LEFT_CHILD

      public static final org.elasticsearch.xcontent.ParseField LEFT_CHILD
    • RIGHT_CHILD

      public static final org.elasticsearch.xcontent.ParseField RIGHT_CHILD
    • DEFAULT_LEFT

      public static final org.elasticsearch.xcontent.ParseField DEFAULT_LEFT
    • SPLIT_FEATURE

      public static final org.elasticsearch.xcontent.ParseField SPLIT_FEATURE
    • NODE_INDEX

      public static final org.elasticsearch.xcontent.ParseField NODE_INDEX
    • SPLIT_GAIN

      public static final org.elasticsearch.xcontent.ParseField SPLIT_GAIN
    • LEAF_VALUE

      public static final org.elasticsearch.xcontent.ParseField LEAF_VALUE
    • NUMBER_SAMPLES

      public static final org.elasticsearch.xcontent.ParseField NUMBER_SAMPLES
  • Method Details

    • fromXContent

      public static TreeNode.Builder fromXContent(org.elasticsearch.xcontent.XContentParser parser)
    • getOperator

      public Operator getOperator()
    • getThreshold

      public Double getThreshold()
    • getSplitFeature

      public Integer getSplitFeature()
    • getNodeIndex

      public Integer getNodeIndex()
    • getSplitGain

      public Double getSplitGain()
    • getLeafValue

      public List<Double> getLeafValue()
    • isDefaultLeft

      public Boolean isDefaultLeft()
    • getLeftChild

      public Integer getLeftChild()
    • getRightChild

      public Integer getRightChild()
    • getNumberSamples

      public Long getNumberSamples()
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static TreeNode.Builder builder(int nodeIndex)