Class ConfusionMatrixThreshold.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ConfusionMatrixThreshold.Builder>
co.elastic.clients.elasticsearch.ml.evaluate_data_frame.ConfusionMatrixThreshold.Builder
- All Implemented Interfaces:
WithJson<ConfusionMatrixThreshold.Builder>
,ObjectBuilder<ConfusionMatrixThreshold>
- Enclosing class:
- ConfusionMatrixThreshold
public static class ConfusionMatrixThreshold.Builder
extends WithJsonObjectBuilderBase<ConfusionMatrixThreshold.Builder>
implements ObjectBuilder<ConfusionMatrixThreshold>
Builder for
ConfusionMatrixThreshold
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aConfusionMatrixThreshold
.falseNegative
(int value) Required - False NegativefalsePositive
(int value) Required - False Positiveprotected ConfusionMatrixThreshold.Builder
self()
trueNegative
(int value) Required - True NegativetruePositive
(int value) Required - True PositiveMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ConfusionMatrixThreshold.Builder>
-
build
Builds aConfusionMatrixThreshold
.- Specified by:
build
in interfaceObjectBuilder<ConfusionMatrixThreshold>
- Throws:
NullPointerException
- if some of the required fields are null.
-