Class ClassificationInferenceOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.ClassificationInferenceOptions
- All Implemented Interfaces:
InferenceConfigVariant,InferenceConfigCreateVariant,JsonpSerializable
@JsonpDeserializable public class ClassificationInferenceOptions extends java.lang.Object implements InferenceConfigCreateVariant, InferenceConfigVariant, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClassificationInferenceOptions.BuilderBuilder forClassificationInferenceOptions. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ClassificationInferenceOptions>_DESERIALIZERJson deserializer forClassificationInferenceOptions -
Method Summary
Modifier and Type Method Description InferenceConfigCreate.Kind_inferenceConfigCreateKind()InferenceConfigCreate variant kind.InferenceConfig.Kind_inferenceConfigKind()InferenceConfig variant kind.java.lang.IntegernumTopClasses()Specifies the number of top class predictions to return.java.lang.IntegernumTopFeatureImportanceValues()Specifies the maximum number of feature importance values per document.static ClassificationInferenceOptionsof(java.util.function.Function<ClassificationInferenceOptions.Builder,ObjectBuilder<ClassificationInferenceOptions>> fn)java.lang.StringpredictionFieldType()Specifies the type of the predicted field to write.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 voidsetupClassificationInferenceOptionsDeserializer(ObjectDeserializer<ClassificationInferenceOptions.Builder> op)java.lang.StringtopClassesResultsField()Specifies the field to which the top classes are written.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 forClassificationInferenceOptions
-
-
Method Details
-
of
public static ClassificationInferenceOptions of(java.util.function.Function<ClassificationInferenceOptions.Builder,ObjectBuilder<ClassificationInferenceOptions>> fn) -
_inferenceConfigCreateKind
InferenceConfigCreate variant kind.- Specified by:
_inferenceConfigCreateKindin interfaceInferenceConfigCreateVariant
-
_inferenceConfigKind
InferenceConfig variant kind.- Specified by:
_inferenceConfigKindin interfaceInferenceConfigVariant
-
numTopClasses
@Nullable public final java.lang.Integer numTopClasses()Specifies the number of top class predictions to return. Defaults to 0.API name:
num_top_classes -
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 -
predictionFieldType
@Nullable public final java.lang.String predictionFieldType()Specifies the type of the predicted field to write. Acceptable values are: string, number, boolean. When boolean is provided 1.0 is transformed to true and 0.0 to false.API name:
prediction_field_type -
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 -
topClassesResultsField
@Nullable public final java.lang.String topClassesResultsField()Specifies the field to which the top classes are written. Defaults to top_classes.API name:
top_classes_results_field -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupClassificationInferenceOptionsDeserializer
protected static void setupClassificationInferenceOptionsDeserializer(ObjectDeserializer<ClassificationInferenceOptions.Builder> op)
-