Class DataframeOutlierDetectionSummary.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataframeOutlierDetectionSummary.Builder>
co.elastic.clients.elasticsearch.ml.evaluate_data_frame.DataframeOutlierDetectionSummary.Builder
- All Implemented Interfaces:
WithJson<DataframeOutlierDetectionSummary.Builder>,ObjectBuilder<DataframeOutlierDetectionSummary>
- Enclosing class:
- DataframeOutlierDetectionSummary
public static class DataframeOutlierDetectionSummary.Builder
extends WithJsonObjectBuilderBase<DataframeOutlierDetectionSummary.Builder>
implements ObjectBuilder<DataframeOutlierDetectionSummary>
Builder for
DataframeOutlierDetectionSummary.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe AUC ROC (area under the curve of the receiver operating characteristic) score and optionally the curve.aucRoc(Function<DataframeEvaluationSummaryAucRoc.Builder, ObjectBuilder<DataframeEvaluationSummaryAucRoc>> fn) The AUC ROC (area under the curve of the receiver operating characteristic) score and optionally the curve.build()Builds aDataframeOutlierDetectionSummary.confusionMatrix(String key, ConfusionMatrixThreshold value) Set the different thresholds of the outlier score at where the metrics (tp- true positive,fp- false positive,tn- true negative,fn- false negative) are calculated.confusionMatrix(String key, Function<ConfusionMatrixThreshold.Builder, ObjectBuilder<ConfusionMatrixThreshold>> fn) Set the different thresholds of the outlier score at where the metrics (tp- true positive,fp- false positive,tn- true negative,fn- false negative) are calculated.Set the different thresholds of the outlier score at where the metrics (tp- true positive,fp- false positive,tn- true negative,fn- false negative) are calculated.Set the different thresholds of the outlier score at where the metric is calculated.Set the different thresholds of the outlier score at where the metric is calculated.Set the different thresholds of the outlier score at where the metric is calculated.Set the different thresholds of the outlier score at where the metric is calculated.protected DataframeOutlierDetectionSummary.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aucRoc
public final DataframeOutlierDetectionSummary.Builder aucRoc(@Nullable DataframeEvaluationSummaryAucRoc value) The AUC ROC (area under the curve of the receiver operating characteristic) score and optionally the curve.API name:
auc_roc -
aucRoc
public final DataframeOutlierDetectionSummary.Builder aucRoc(Function<DataframeEvaluationSummaryAucRoc.Builder, ObjectBuilder<DataframeEvaluationSummaryAucRoc>> fn) The AUC ROC (area under the curve of the receiver operating characteristic) score and optionally the curve.API name:
auc_roc -
precision
Set the different thresholds of the outlier score at where the metric is calculated.API name:
precisionAdds all entries of
maptoprecision. -
precision
Set the different thresholds of the outlier score at where the metric is calculated.API name:
precisionAdds an entry to
precision. -
recall
Set the different thresholds of the outlier score at where the metric is calculated.API name:
recallAdds all entries of
maptorecall. -
recall
Set the different thresholds of the outlier score at where the metric is calculated.API name:
recallAdds an entry to
recall. -
confusionMatrix
public final DataframeOutlierDetectionSummary.Builder confusionMatrix(Map<String, ConfusionMatrixThreshold> map) Set the different thresholds of the outlier score at where the metrics (tp- true positive,fp- false positive,tn- true negative,fn- false negative) are calculated.API name:
confusion_matrixAdds all entries of
maptoconfusionMatrix. -
confusionMatrix
public final DataframeOutlierDetectionSummary.Builder confusionMatrix(String key, ConfusionMatrixThreshold value) Set the different thresholds of the outlier score at where the metrics (tp- true positive,fp- false positive,tn- true negative,fn- false negative) are calculated.API name:
confusion_matrixAdds an entry to
confusionMatrix. -
confusionMatrix
public final DataframeOutlierDetectionSummary.Builder confusionMatrix(String key, Function<ConfusionMatrixThreshold.Builder, ObjectBuilder<ConfusionMatrixThreshold>> fn) Set the different thresholds of the outlier score at where the metrics (tp- true positive,fp- false positive,tn- true negative,fn- false negative) are calculated.API name:
confusion_matrixAdds an entry to
confusionMatrixusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DataframeOutlierDetectionSummary.Builder>
-
build
Builds aDataframeOutlierDetectionSummary.- Specified by:
buildin interfaceObjectBuilder<DataframeOutlierDetectionSummary>- Throws:
NullPointerException- if some of the required fields are null.
-