Class TrainedModel
java.lang.Object
co.elastic.clients.elasticsearch.ml.put_trained_model.TrainedModel
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class TrainedModel extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTrainedModel.BuilderBuilder forTrainedModel. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModel>_DESERIALIZERJson deserializer forTrainedModel -
Constructor Summary
Constructors Constructor Description TrainedModel(TrainedModel.Builder builder)TrainedModel(java.util.function.Function<TrainedModel.Builder,TrainedModel.Builder> fn) -
Method Summary
Modifier and Type Method Description Ensembleensemble()The definition for an ensemble modelvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTrainedModelDeserializer(DelegatingDeserializer<TrainedModel.Builder> op)TrainedModelTreetree()The definition for a binary decision tree.TrainedModelTreeNodetreeNode()The definition of a node in a tree.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModel
-
-
Constructor Details
-
TrainedModel
-
TrainedModel
-
-
Method Details
-
tree
The definition for a binary decision tree.API name:
tree -
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
The definition for an ensemble modelAPI name:
ensemble -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupTrainedModelDeserializer
protected static void setupTrainedModelDeserializer(DelegatingDeserializer<TrainedModel.Builder> op)
-