Class Preprocessor
java.lang.Object
co.elastic.clients.elasticsearch.ml.put_trained_model.Preprocessor
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<java.lang.Object>
@JsonpDeserializable public class Preprocessor extends java.lang.Object implements TaggedUnion<java.lang.Object>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Preprocessor.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Preprocessor>
_DESERIALIZER
static java.lang.String
FREQUENCY_ENCODING
static java.lang.String
ONE_HOT_ENCODING
static java.lang.String
TARGET_MEAN_ENCODING
-
Constructor Summary
Constructors Constructor Description Preprocessor(PreprocessorVariant value)
Preprocessor(ObjectBuilder<T> builder)
Preprocessor(java.util.function.Function<Preprocessor.Builder,Preprocessor.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.Object
_get()
java.lang.String
_type()
Get the of the type of the variant held by this union object.FrequencyEncodingPreprocessor
frequencyEncoding()
Get thefrequency_encoding
variant value.OneHotEncodingPreprocessor
oneHotEncoding()
Get theone_hot_encoding
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupPreprocessorDeserializer(DelegatingDeserializer<Preprocessor.Builder> op)
TargetMeanEncodingPreprocessor
targetMeanEncoding()
Get thetarget_mean_encoding
variant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
FREQUENCY_ENCODING
public static final java.lang.String FREQUENCY_ENCODING- See Also:
- Constant Field Values
-
ONE_HOT_ENCODING
public static final java.lang.String ONE_HOT_ENCODING- See Also:
- Constant Field Values
-
TARGET_MEAN_ENCODING
public static final java.lang.String TARGET_MEAN_ENCODING- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
Preprocessor
-
Preprocessor
-
Preprocessor
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnion
Get the of the type of the variant held by this union object.- Specified by:
_type
in interfaceTaggedUnion<java.lang.Object>
- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<java.lang.Object>
-
frequencyEncoding
Get thefrequency_encoding
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefrequency_encoding
kind.
-
oneHotEncoding
Get theone_hot_encoding
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theone_hot_encoding
kind.
-
targetMeanEncoding
Get thetarget_mean_encoding
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thetarget_mean_encoding
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupPreprocessorDeserializer
protected static void setupPreprocessorDeserializer(DelegatingDeserializer<Preprocessor.Builder> op)
-