Class TrainedModelTreeNode
java.lang.Object
co.elastic.clients.elasticsearch.ml.put_trained_model.TrainedModelTreeNode
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class TrainedModelTreeNode extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrainedModelTreeNode.Builder
Builder forTrainedModelTreeNode
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelTreeNode>
_DESERIALIZER
Json deserializer forTrainedModelTreeNode
-
Method Summary
Modifier and Type Method Description java.lang.String
decisionType()
API name:decision_type
java.lang.Boolean
defaultLeft()
API name:default_left
java.lang.Double
leafValue()
API name:leaf_value
java.lang.Integer
leftChild()
API name:left_child
int
nodeIndex()
Required - API name:node_index
static TrainedModelTreeNode
of(java.util.function.Function<TrainedModelTreeNode.Builder,ObjectBuilder<TrainedModelTreeNode>> fn)
java.lang.Integer
rightChild()
API name:right_child
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
setupTrainedModelTreeNodeDeserializer(ObjectDeserializer<TrainedModelTreeNode.Builder> op)
java.lang.Integer
splitFeature()
API name:split_feature
java.lang.Integer
splitGain()
API name:split_gain
java.lang.Double
threshold()
API name:threshold
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelTreeNode
-
-
Method Details
-
of
public static TrainedModelTreeNode of(java.util.function.Function<TrainedModelTreeNode.Builder,ObjectBuilder<TrainedModelTreeNode>> fn) -
decisionType
@Nullable public final java.lang.String decisionType()API name:decision_type
-
defaultLeft
@Nullable public final java.lang.Boolean defaultLeft()API name:default_left
-
leafValue
@Nullable public final java.lang.Double leafValue()API name:leaf_value
-
leftChild
@Nullable public final java.lang.Integer leftChild()API name:left_child
-
nodeIndex
public final int nodeIndex()Required - API name:node_index
-
rightChild
@Nullable public final java.lang.Integer rightChild()API name:right_child
-
splitFeature
@Nullable public final java.lang.Integer splitFeature()API name:split_feature
-
splitGain
@Nullable public final java.lang.Integer splitGain()API name:split_gain
-
threshold
@Nullable public final java.lang.Double threshold()API name:threshold
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupTrainedModelTreeNodeDeserializer
protected static void setupTrainedModelTreeNodeDeserializer(ObjectDeserializer<TrainedModelTreeNode.Builder> op)
-