Class ConfusionMatrixThreshold
java.lang.Object
co.elastic.clients.elasticsearch.ml.evaluate_data_frame.ConfusionMatrixThreshold
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ConfusionMatrixThreshold extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
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
-
Method Summary
Modifier and Type Method Description int
falseNegative()
Required - False Negativeint
falsePositive()
Required - False Positivestatic ConfusionMatrixThreshold
of(java.util.function.Function<ConfusionMatrixThreshold.Builder,ObjectBuilder<ConfusionMatrixThreshold>> fn)
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
setupConfusionMatrixThresholdDeserializer(ObjectDeserializer<ConfusionMatrixThreshold.Builder> op)
java.lang.String
toString()
int
trueNegative()
Required - True Negativeint
truePositive()
Required - True PositiveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forConfusionMatrixThreshold
-
-
Method Details
-
of
public static ConfusionMatrixThreshold of(java.util.function.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
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupConfusionMatrixThresholdDeserializer
protected static void setupConfusionMatrixThresholdDeserializer(ObjectDeserializer<ConfusionMatrixThreshold.Builder> op)
-