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 classConfusionMatrixThreshold.BuilderBuilder forConfusionMatrixThreshold. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ConfusionMatrixThreshold>_DESERIALIZERJson deserializer forConfusionMatrixThreshold -
Method Summary
Modifier and Type Method Description intfalseNegative()Required - False NegativeintfalsePositive()Required - False Positivestatic ConfusionMatrixThresholdof(java.util.function.Function<ConfusionMatrixThreshold.Builder,ObjectBuilder<ConfusionMatrixThreshold>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupConfusionMatrixThresholdDeserializer(ObjectDeserializer<ConfusionMatrixThreshold.Builder> op)java.lang.StringtoString()inttrueNegative()Required - True NegativeinttruePositive()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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupConfusionMatrixThresholdDeserializer
protected static void setupConfusionMatrixThresholdDeserializer(ObjectDeserializer<ConfusionMatrixThreshold.Builder> op)
-