Class ConfusionMatrixThreshold.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.evaluate_data_frame.ConfusionMatrixThreshold.Builder
- All Implemented Interfaces:
ObjectBuilder<ConfusionMatrixThreshold>
- Enclosing class:
- ConfusionMatrixThreshold
public static class ConfusionMatrixThreshold.Builder extends java.lang.Object implements ObjectBuilder<ConfusionMatrixThreshold>
Builder for
ConfusionMatrixThreshold
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ConfusionMatrixThreshold
build()
Builds aConfusionMatrixThreshold
.ConfusionMatrixThreshold.Builder
falseNegative(int value)
False NegativeConfusionMatrixThreshold.Builder
falsePositive(int value)
False PositiveConfusionMatrixThreshold.Builder
trueNegative(int value)
True NegativeConfusionMatrixThreshold.Builder
truePositive(int value)
True PositiveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
truePositive
True PositiveAPI name:
tp
-
falsePositive
False PositiveAPI name:
fp
-
trueNegative
True NegativeAPI name:
tn
-
falseNegative
False NegativeAPI name:
fn
-
build
Builds aConfusionMatrixThreshold
.- Specified by:
build
in interfaceObjectBuilder<ConfusionMatrixThreshold>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-