Class RegressionInferenceOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch._types.aggregations.RegressionInferenceOptions.Builder
- All Implemented Interfaces:
ObjectBuilder<RegressionInferenceOptions>
- Enclosing class:
- RegressionInferenceOptions
public static class RegressionInferenceOptions.Builder extends ObjectBuilderBase implements ObjectBuilder<RegressionInferenceOptions>
Builder for
RegressionInferenceOptions
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description RegressionInferenceOptions
build()
Builds aRegressionInferenceOptions
.RegressionInferenceOptions.Builder
numTopFeatureImportanceValues(java.lang.Integer value)
Specifies the maximum number of feature importance values per document.RegressionInferenceOptions.Builder
resultsField(java.lang.String value)
The field that is added to incoming documents to contain the inference prediction.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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. By default, it is zero and no feature importance calculation occurs.API name:
num_top_feature_importance_values
-
build
Builds aRegressionInferenceOptions
.- Specified by:
build
in interfaceObjectBuilder<RegressionInferenceOptions>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-