Class RegressionInferenceOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RegressionInferenceOptions.Builder>
co.elastic.clients.elasticsearch.ml.RegressionInferenceOptions.Builder
- All Implemented Interfaces:
WithJson<RegressionInferenceOptions.Builder>,ObjectBuilder<RegressionInferenceOptions>
- Enclosing class:
- RegressionInferenceOptions
public static class RegressionInferenceOptions.Builder
extends WithJsonObjectBuilderBase<RegressionInferenceOptions.Builder>
implements ObjectBuilder<RegressionInferenceOptions>
Builder for
RegressionInferenceOptions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRegressionInferenceOptions.Specifies the maximum number of feature importance values per document.resultsField(String value) The field that is added to incoming documents to contain the inference prediction.protected RegressionInferenceOptions.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
-
resultsField
The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field -
numTopFeatureImportanceValues
public final RegressionInferenceOptions.Builder numTopFeatureImportanceValues(@Nullable Integer value) Specifies the maximum number of feature importance values per document.API name:
num_top_feature_importance_values -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RegressionInferenceOptions.Builder>
-
build
Builds aRegressionInferenceOptions.- Specified by:
buildin interfaceObjectBuilder<RegressionInferenceOptions>- Throws:
NullPointerException- if some of the required fields are null.
-