Class ConfusionMatrixThreshold
java.lang.Object
co.elastic.clients.elasticsearch.ml.evaluate_data_frame.ConfusionMatrixThreshold
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class ConfusionMatrixThreshold extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConfusionMatrixThreshold.Builder
Builder forConfusionMatrixThreshold
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ConfusionMatrixThreshold>
_DESERIALIZER
Json deserializer forConfusionMatrixThreshold
-
Constructor Summary
Constructors Constructor Description ConfusionMatrixThreshold(ConfusionMatrixThreshold.Builder builder)
ConfusionMatrixThreshold(java.util.function.Function<ConfusionMatrixThreshold.Builder,ConfusionMatrixThreshold.Builder> fn)
-
Method Summary
Modifier and Type Method Description int
falseNegative()
Required - False Negativeint
falsePositive()
Required - False Positivevoid
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
setupConfusionMatrixThresholdDeserializer(DelegatingDeserializer<ConfusionMatrixThreshold.Builder> op)
int
trueNegative()
Required - True Negativeint
truePositive()
Required - True PositiveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forConfusionMatrixThreshold
-
-
Constructor Details
-
ConfusionMatrixThreshold
-
ConfusionMatrixThreshold
public ConfusionMatrixThreshold(java.util.function.Function<ConfusionMatrixThreshold.Builder,ConfusionMatrixThreshold.Builder> fn)
-
-
Method Details
-
truePositive
public int truePositive()Required - True PositiveAPI name:
tp
-
falsePositive
public int falsePositive()Required - False PositiveAPI name:
fp
-
trueNegative
public int trueNegative()Required - True NegativeAPI name:
tn
-
falseNegative
public int falseNegative()Required - False NegativeAPI name:
fn
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupConfusionMatrixThresholdDeserializer
protected static void setupConfusionMatrixThresholdDeserializer(DelegatingDeserializer<ConfusionMatrixThreshold.Builder> op)
-