Class Preprocessor
java.lang.Object
co.elastic.clients.elasticsearch.ml.put_trained_model.Preprocessor
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Preprocessor.Kind,Object>
@JsonpDeserializable
public class Preprocessor
extends Object
implements TaggedUnion<Preprocessor.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final Preprocessor.Kind_kind()Get the of the kind of variant held by this object.Get thefrequency_encodingvariant value.booleanIs this variant instance of kindfrequency_encoding?booleanIs this variant instance of kindone_hot_encoding?booleanIs this variant instance of kindtarget_mean_encoding?static PreprocessorGet theone_hot_encodingvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidGet thetarget_mean_encodingvariant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Preprocessor
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Preprocessor.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Preprocessor.Kind,Object>
-
of
-
isFrequencyEncoding
public boolean isFrequencyEncoding()Is this variant instance of kindfrequency_encoding? -
frequencyEncoding
Get thefrequency_encodingvariant value.- Throws:
IllegalStateException- if the current variant is not of thefrequency_encodingkind.
-
isOneHotEncoding
public boolean isOneHotEncoding()Is this variant instance of kindone_hot_encoding? -
oneHotEncoding
Get theone_hot_encodingvariant value.- Throws:
IllegalStateException- if the current variant is not of theone_hot_encodingkind.
-
isTargetMeanEncoding
public boolean isTargetMeanEncoding()Is this variant instance of kindtarget_mean_encoding? -
targetMeanEncoding
Get thetarget_mean_encodingvariant value.- Throws:
IllegalStateException- if the current variant is not of thetarget_mean_encodingkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupPreprocessorDeserializer
-