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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description RegressionInferenceOptionsbuild()Builds aRegressionInferenceOptions.RegressionInferenceOptions.BuildernumTopFeatureImportanceValues(java.lang.Integer value)Specifies the maximum number of feature importance values per document.RegressionInferenceOptions.BuilderresultsField(java.lang.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, _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
-
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 java.lang.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:
java.lang.NullPointerException- if some of the required fields are null.
-