Class DataframeEvaluationClassification
java.lang.Object
co.elastic.clients.elasticsearch.ml.DataframeEvaluationClassification
- All Implemented Interfaces:
DataframeEvaluationVariant
,JsonpSerializable
@JsonpDeserializable
public class DataframeEvaluationClassification
extends Object
implements DataframeEvaluationVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<DataframeEvaluationClassification>
Json deserializer forDataframeEvaluationClassification
-
Method Summary
Modifier and TypeMethodDescriptionDataframeEvaluation variant kind.final String
Required - The field of the index which contains the ground truth.metrics()
Specifies the metrics that are used for the evaluation.of
(Function<DataframeEvaluationClassification.Builder, ObjectBuilder<DataframeEvaluationClassification>> fn) final String
The field in the index which contains the predicted value, in other words the results of the classification analysis.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
setupDataframeEvaluationClassificationDeserializer
(ObjectDeserializer<DataframeEvaluationClassification.Builder> op) final String
The field of the index which is an array of documents of the form { "class_name": XXX, "class_probability": YYY }.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.ml.DataframeEvaluationVariant
_toDataframeEvaluation
-
Field Details
-
_DESERIALIZER
Json deserializer forDataframeEvaluationClassification
-
-
Method Details
-
of
-
_dataframeEvaluationKind
DataframeEvaluation variant kind.- Specified by:
_dataframeEvaluationKind
in interfaceDataframeEvaluationVariant
-
actualField
Required - The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true).API name:
actual_field
-
predictedField
The field in the index which contains the predicted value, in other words the results of the classification analysis.API name:
predicted_field
-
topClassesField
The field of the index which is an array of documents of the form { "class_name": XXX, "class_probability": YYY }. This field must be defined as nested in the mappings.API name:
top_classes_field
-
metrics
Specifies the metrics that are used for the evaluation.API name:
metrics
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDataframeEvaluationClassificationDeserializer
protected static void setupDataframeEvaluationClassificationDeserializer(ObjectDeserializer<DataframeEvaluationClassification.Builder> op)
-