Class DataframeEvaluationClassification
java.lang.Object
co.elastic.clients.elasticsearch.ml.DataframeEvaluationClassification
- All Implemented Interfaces:
DataframeEvaluationVariant,JsonpSerializable,UnionVariant
@JsonpDeserializable public final class DataframeEvaluationClassification extends java.lang.Object implements DataframeEvaluationVariant, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataframeEvaluationClassification.BuilderBuilder forDataframeEvaluationClassification. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<DataframeEvaluationClassification>_DESERIALIZERJson deserializer forDataframeEvaluationClassification -
Constructor Summary
Constructors Constructor Description DataframeEvaluationClassification(DataframeEvaluationClassification.Builder builder)DataframeEvaluationClassification(java.util.function.Function<DataframeEvaluationClassification.Builder,DataframeEvaluationClassification.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.String_variantType()DataframeEvaluationvariant typejava.lang.StringactualField()Required - The field of the index which contains the ground truth.DataframeEvaluationClassificationMetricsmetrics()Specifies the metrics that are used for the evaluation.java.lang.StringpredictedField()The field in the index which contains the predicted value, in other words the results of the classification analysis.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupDataframeEvaluationClassificationDeserializer(DelegatingDeserializer<DataframeEvaluationClassification.Builder> op)java.lang.StringtopClassesField()The field of the index which is an array of documents of the form { "class_name": XXX, "class_probability": YYY }.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ml.DataframeEvaluationVariant
_toDataframeEvaluation
-
Field Details
-
_DESERIALIZER
Json deserializer forDataframeEvaluationClassification
-
-
Constructor Details
-
DataframeEvaluationClassification
-
DataframeEvaluationClassification
public DataframeEvaluationClassification(java.util.function.Function<DataframeEvaluationClassification.Builder,DataframeEvaluationClassification.Builder> fn)
-
-
Method Details
-
_variantType
public java.lang.String _variantType()DataframeEvaluationvariant type- Specified by:
_variantTypein interfaceUnionVariant
-
actualField
public java.lang.String 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
@Nullable public java.lang.String 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
@Nullable public java.lang.String 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupDataframeEvaluationClassificationDeserializer
protected static void setupDataframeEvaluationClassificationDeserializer(DelegatingDeserializer<DataframeEvaluationClassification.Builder> op)
-