Class ConfusionMatrixThreshold
java.lang.Object
co.elastic.clients.elasticsearch.ml.evaluate_data_frame.ConfusionMatrixThreshold
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class ConfusionMatrixThreshold
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<ConfusionMatrixThreshold>
Json deserializer forConfusionMatrixThreshold
-
Method Summary
Modifier and TypeMethodDescriptionfinal int
Required - False Negativefinal int
Required - False Positivestatic ConfusionMatrixThreshold
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
toString()
final int
Required - True Negativefinal int
Required - True Positive
-
Field Details
-
_DESERIALIZER
Json deserializer forConfusionMatrixThreshold
-
-
Method Details
-
of
public static ConfusionMatrixThreshold of(Function<ConfusionMatrixThreshold.Builder, ObjectBuilder<ConfusionMatrixThreshold>> fn) -
truePositive
public final int truePositive()Required - True PositiveAPI name:
tp
-
falsePositive
public final int falsePositive()Required - False PositiveAPI name:
fp
-
trueNegative
public final int trueNegative()Required - True NegativeAPI name:
tn
-
falseNegative
public final int falseNegative()Required - False NegativeAPI name:
fn
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupConfusionMatrixThresholdDeserializer
protected static void setupConfusionMatrixThresholdDeserializer(ObjectDeserializer<ConfusionMatrixThreshold.Builder> op)
-