Class RegressionInferenceOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.RegressionInferenceOptions
- All Implemented Interfaces:
InferenceConfigVariant,InferenceConfigCreateVariant,JsonpSerializable
@JsonpDeserializable public class RegressionInferenceOptions extends java.lang.Object implements InferenceConfigCreateVariant, InferenceConfigVariant, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRegressionInferenceOptions.BuilderBuilder forRegressionInferenceOptions. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RegressionInferenceOptions>_DESERIALIZERJson deserializer forRegressionInferenceOptions -
Method Summary
Modifier and Type Method Description InferenceConfigCreate.Kind_inferenceConfigCreateKind()InferenceConfigCreate variant kind.InferenceConfig.Kind_inferenceConfigKind()InferenceConfig variant kind.java.lang.IntegernumTopFeatureImportanceValues()Specifies the maximum number of feature importance values per document.static RegressionInferenceOptionsof(java.util.function.Function<RegressionInferenceOptions.Builder,ObjectBuilder<RegressionInferenceOptions>> fn)java.lang.StringresultsField()The field that is added to incoming documents to contain the inference prediction.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupRegressionInferenceOptionsDeserializer(ObjectDeserializer<RegressionInferenceOptions.Builder> op)java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ml.InferenceConfigCreateVariant
_toInferenceConfigCreateMethods inherited from interface co.elastic.clients.elasticsearch._types.aggregations.InferenceConfigVariant
_toInferenceConfig
-
Field Details
-
_DESERIALIZER
Json deserializer forRegressionInferenceOptions
-
-
Method Details
-
of
public static RegressionInferenceOptions of(java.util.function.Function<RegressionInferenceOptions.Builder,ObjectBuilder<RegressionInferenceOptions>> fn) -
_inferenceConfigCreateKind
InferenceConfigCreate variant kind.- Specified by:
_inferenceConfigCreateKindin interfaceInferenceConfigCreateVariant
-
_inferenceConfigKind
InferenceConfig variant kind.- Specified by:
_inferenceConfigKindin interfaceInferenceConfigVariant
-
resultsField
@Nullable public final java.lang.String resultsField()The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field -
numTopFeatureImportanceValues
@Nullable public final java.lang.Integer numTopFeatureImportanceValues()Specifies the maximum number of feature importance values per document.API name:
num_top_feature_importance_values -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupRegressionInferenceOptionsDeserializer
protected static void setupRegressionInferenceOptionsDeserializer(ObjectDeserializer<RegressionInferenceOptions.Builder> op)
-