Class TrainedModel
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
-
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 -
Method Summary
Modifier and Type Method Description Ensembleensemble()The definition for an ensemble modelstatic TrainedModelof(java.util.function.Function<TrainedModel.Builder,ObjectBuilder<TrainedModel>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTrainedModelDeserializer(ObjectDeserializer<TrainedModel.Builder> op)java.lang.StringtoString()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, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModel
-
-
Method Details
-
of
public static TrainedModel of(java.util.function.Function<TrainedModel.Builder,ObjectBuilder<TrainedModel>> fn) -
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
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupTrainedModelDeserializer
-