Class ClassificationInferenceOptions
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.ClassificationInferenceOptions
- All Implemented Interfaces:
ToJsonp
public final class ClassificationInferenceOptions extends java.lang.Object implements ToJsonp
-
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 for ClassificationInferenceOptions -
Constructor Summary
Constructors Modifier Constructor Description protectedClassificationInferenceOptions(ClassificationInferenceOptions.Builder builder) -
Method Summary
Modifier and Type Method Description java.lang.NumbernumTopClasses()Specifies the number of top class predictions to return.java.lang.NumbernumTopFeatureImportanceValues()Specifies the maximum number of feature importance values per document.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.protected static voidsetupClassificationInferenceOptionsDeserializer(DelegatingDeserializer<ClassificationInferenceOptions.Builder> op)voidtoJsonp(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidtoJsonpInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)java.lang.StringtopClassesResultsField()Specifies the field to which the top classes are written.
-
Field Details
-
DESERIALIZER
Json deserializer for ClassificationInferenceOptions
-
-
Constructor Details
-
Method Details
-
numTopClasses
@Nullable public java.lang.Number numTopClasses()Specifies the number of top class predictions to return. Defaults to 0. API name:num_top_classes -
numTopFeatureImportanceValues
@Nullable public java.lang.Number numTopFeatureImportanceValues()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 -
predictionFieldType
@Nullable public 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 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 java.lang.String topClassesResultsField()Specifies the field to which the top classes are written. Defaults to top_classes. API name:top_classes_results_field -
toJsonp
Serialize this object to JSON. -
toJsonpInternal
-
setupClassificationInferenceOptionsDeserializer
protected static void setupClassificationInferenceOptionsDeserializer(DelegatingDeserializer<ClassificationInferenceOptions.Builder> op)
-