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 class
TrainedModel.Builder
Builder forTrainedModel
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModel>
_DESERIALIZER
Json deserializer forTrainedModel
-
Method Summary
Modifier and Type Method Description Ensemble
ensemble()
The definition for an ensemble modelstatic TrainedModel
of(java.util.function.Function<TrainedModel.Builder,ObjectBuilder<TrainedModel>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupTrainedModelDeserializer(ObjectDeserializer<TrainedModel.Builder> op)
java.lang.String
toString()
TrainedModelTree
tree()
The definition for a binary decision tree.TrainedModelTreeNode
treeNode()
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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupTrainedModelDeserializer
-