Class LaplaceSmoothingModel.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<LaplaceSmoothingModel.Builder>
co.elastic.clients.elasticsearch.core.search.LaplaceSmoothingModel.Builder
- All Implemented Interfaces:
WithJson<LaplaceSmoothingModel.Builder>,ObjectBuilder<LaplaceSmoothingModel>
- Enclosing class:
- LaplaceSmoothingModel
public static class LaplaceSmoothingModel.Builder
extends WithJsonObjectBuilderBase<LaplaceSmoothingModel.Builder>
implements ObjectBuilder<LaplaceSmoothingModel>
Builder for
LaplaceSmoothingModel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalpha(double value) Required - A constant that is added to all counts to balance weights.build()Builds aLaplaceSmoothingModel.protected LaplaceSmoothingModel.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
-
alpha
Required - A constant that is added to all counts to balance weights.API name:
alpha -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<LaplaceSmoothingModel.Builder>
-
build
Builds aLaplaceSmoothingModel.- Specified by:
buildin interfaceObjectBuilder<LaplaceSmoothingModel>- Throws:
NullPointerException- if some of the required fields are null.
-