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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description DataframeEvaluationRegression.BuilderactualField(java.lang.String value)Required - The field of the index which contains the ground truth.DataframeEvaluationRegressionbuild()Builds aDataframeEvaluationRegression.DataframeEvaluationRegression.Buildermetrics(DataframeEvaluationRegressionMetrics value)Specifies the metrics that are used for the evaluation.DataframeEvaluationRegression.Buildermetrics(java.util.function.Function<DataframeEvaluationRegressionMetrics.Builder,ObjectBuilder<DataframeEvaluationRegressionMetrics>> fn)Specifies the metrics that are used for the evaluation.DataframeEvaluationRegression.BuilderpredictedField(java.lang.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, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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(java.util.function.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:
java.lang.NullPointerException- if some of the required fields are null.
-