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 classConfusionMatrixThreshold.BuilderBuilder forConfusionMatrixThreshold. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ConfusionMatrixThreshold>_DESERIALIZERJson 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 intfalseNegative()Required - False NegativeintfalsePositive()Required - False Positivevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupConfusionMatrixThresholdDeserializer(DelegatingDeserializer<ConfusionMatrixThreshold.Builder> op)inttrueNegative()Required - True NegativeinttruePositive()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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupConfusionMatrixThresholdDeserializer
protected static void setupConfusionMatrixThresholdDeserializer(DelegatingDeserializer<ConfusionMatrixThreshold.Builder> op)
-