java.lang.Object
co.elastic.clients.elasticsearch.ml.put_trained_model.TrainedModel
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class TrainedModel
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static TrainedModel of​(java.util.function.Function<TrainedModel.Builder,​ObjectBuilder<TrainedModel>> fn)
    • tree

      @Nullable public final TrainedModelTree tree()
      The definition for a binary decision tree.

      API name: tree

    • treeNode

      @Nullable public final TrainedModelTreeNode treeNode()
      The definition of a node in a tree. There are two major types of nodes: leaf nodes and not-leaf nodes.
      • Leaf nodes only need node_index and leaf_value defined.
      • All other nodes need split_feature, left_child, right_child, threshold, decision_type, and default_left defined.

      API name: tree_node

    • ensemble

      @Nullable public final Ensemble ensemble()
      The definition for an ensemble model

      API name: ensemble

    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupTrainedModelDeserializer

      protected static void setupTrainedModelDeserializer​(ObjectDeserializer<TrainedModel.Builder> op)