Class DataframeEvaluationRegression.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataframeEvaluationRegression.Builder>
co.elastic.clients.elasticsearch.ml.DataframeEvaluationRegression.Builder
- All Implemented Interfaces:
WithJson<DataframeEvaluationRegression.Builder>,ObjectBuilder<DataframeEvaluationRegression>
- Enclosing class:
- DataframeEvaluationRegression
public static class DataframeEvaluationRegression.Builder
extends WithJsonObjectBuilderBase<DataframeEvaluationRegression.Builder>
implements ObjectBuilder<DataframeEvaluationRegression>
Builder for
DataframeEvaluationRegression.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactualField(String value) Required - The field of the index which contains the ground truth.build()Builds aDataframeEvaluationRegression.Specifies the metrics that are used for the evaluation.metrics(Function<DataframeEvaluationRegressionMetrics.Builder, ObjectBuilder<DataframeEvaluationRegressionMetrics>> fn) Specifies the metrics that are used for the evaluation.predictedField(String value) Required - The field in the index that contains the predicted value, in other words the results of the regression analysis.protected DataframeEvaluationRegression.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
-
actualField
Required - The field of the index which contains the ground truth. The data type of this field must be numerical.API name:
actual_field -
predictedField
Required - The field in the index that contains the predicted value, in other words the results of the regression analysis.API name:
predicted_field -
metrics
public final DataframeEvaluationRegression.Builder metrics(@Nullable DataframeEvaluationRegressionMetrics value) Specifies the metrics that are used for the evaluation. For more information on mse, msle, and huber, consult the Jupyter notebook on regression loss functions.API name:
metrics -
metrics
public final DataframeEvaluationRegression.Builder metrics(Function<DataframeEvaluationRegressionMetrics.Builder, ObjectBuilder<DataframeEvaluationRegressionMetrics>> fn) Specifies the metrics that are used for the evaluation. For more information on mse, msle, and huber, consult the Jupyter notebook on regression loss functions.API name:
metrics -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DataframeEvaluationRegression.Builder>
-
build
Builds aDataframeEvaluationRegression.- Specified by:
buildin interfaceObjectBuilder<DataframeEvaluationRegression>- Throws:
NullPointerException- if some of the required fields are null.
-