Class InferenceConfigClassification
java.lang.Object
co.elastic.clients.elasticsearch.ingest.InferenceConfigClassification
- All Implemented Interfaces:
InferenceConfigVariant,JsonpSerializable
@JsonpDeserializable
public class InferenceConfigClassification
extends Object
implements InferenceConfigVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<InferenceConfigClassification>Json deserializer forInferenceConfigClassification -
Method Summary
Modifier and TypeMethodDescriptionInferenceConfig variant kind.final IntegerSpecifies the number of top class predictions to return.final IntegerSpecifies the maximum number of feature importance values per document.final StringSpecifies the type of the predicted field to write.final StringThe 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 voidsetupInferenceConfigClassificationDeserializer(ObjectDeserializer<InferenceConfigClassification.Builder> op) final StringSpecifies the field to which the top classes are written.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ingest.InferenceConfigVariant
_toInferenceConfig
-
Field Details
-
_DESERIALIZER
Json deserializer forInferenceConfigClassification
-
-
Method Details
-
of
-
_inferenceConfigKind
InferenceConfig variant kind.- Specified by:
_inferenceConfigKindin interfaceInferenceConfigVariant
-
numTopClasses
Specifies the number of top class predictions to return.API name:
num_top_classes -
numTopFeatureImportanceValues
Specifies the maximum number of feature importance values per document.API name:
num_top_feature_importance_values -
resultsField
The field that is added to incoming documents to contain the inference prediction.API name:
results_field -
topClassesResultsField
Specifies the field to which the top classes are written.API name:
top_classes_results_field -
predictionFieldType
Specifies the type of the predicted field to write. Valid values are:string,number,boolean.API name:
prediction_field_type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupInferenceConfigClassificationDeserializer
protected static void setupInferenceConfigClassificationDeserializer(ObjectDeserializer<InferenceConfigClassification.Builder> op)
-