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 ConfusionMatrixThresholdbuild()Builds aConfusionMatrixThreshold.ConfusionMatrixThreshold.BuilderfalseNegative(int value)Required - False NegativeConfusionMatrixThreshold.BuilderfalsePositive(int value)Required - False PositiveConfusionMatrixThreshold.BuildertrueNegative(int value)Required - True NegativeConfusionMatrixThreshold.BuildertruePositive(int value)Required - 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
Required - True PositiveAPI name:
tp -
falsePositive
Required - False PositiveAPI name:
fp -
trueNegative
Required - True NegativeAPI name:
tn -
falseNegative
Required - False NegativeAPI name:
fn -
build
Builds aConfusionMatrixThreshold.- Specified by:
buildin interfaceObjectBuilder<ConfusionMatrixThreshold>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-