Class InferenceConfigClassification
java.lang.Object
co.elastic.clients.elasticsearch.ingest.InferenceConfigClassification
- All Implemented Interfaces:
InferenceConfigVariant,JsonpSerializable
@JsonpDeserializable public class InferenceConfigClassification extends java.lang.Object implements InferenceConfigVariant, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInferenceConfigClassification.BuilderBuilder forInferenceConfigClassification. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<InferenceConfigClassification>_DESERIALIZERJson deserializer forInferenceConfigClassification -
Method Summary
Modifier and Type Method Description InferenceConfig.Kind_inferenceConfigKind()InferenceConfig variant kind.java.lang.IntegernumTopClasses()API name:num_top_classesjava.lang.IntegernumTopFeatureImportanceValues()API name:num_top_feature_importance_valuesstatic InferenceConfigClassificationof(java.util.function.Function<InferenceConfigClassification.Builder,ObjectBuilder<InferenceConfigClassification>> fn)java.lang.StringpredictionFieldType()API name:prediction_field_typejava.lang.StringresultsField()API name:results_fieldvoidserialize(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)java.lang.StringtopClassesResultsField()API name:top_classes_results_fieldjava.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.ingest.InferenceConfigVariant
_toInferenceConfig
-
Field Details
-
_DESERIALIZER
Json deserializer forInferenceConfigClassification
-
-
Method Details
-
of
public static InferenceConfigClassification of(java.util.function.Function<InferenceConfigClassification.Builder,ObjectBuilder<InferenceConfigClassification>> fn) -
_inferenceConfigKind
InferenceConfig variant kind.- Specified by:
_inferenceConfigKindin interfaceInferenceConfigVariant
-
numTopClasses
@Nullable public final java.lang.Integer numTopClasses()API name:num_top_classes -
numTopFeatureImportanceValues
@Nullable public final java.lang.Integer numTopFeatureImportanceValues()API name:num_top_feature_importance_values -
resultsField
@Nullable public final java.lang.String resultsField()API name:results_field -
topClassesResultsField
@Nullable public final java.lang.String topClassesResultsField()API name:top_classes_results_field -
predictionFieldType
@Nullable public final java.lang.String predictionFieldType()API name:prediction_field_type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupInferenceConfigClassificationDeserializer
protected static void setupInferenceConfigClassificationDeserializer(ObjectDeserializer<InferenceConfigClassification.Builder> op)
-