Class TargetMeanEncoding
java.lang.Object
org.elasticsearch.client.ml.inference.preprocessing.TargetMeanEncoding
- All Implemented Interfaces:
NamedXContentObject,PreProcessor,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class TargetMeanEncoding extends java.lang.Object implements PreProcessor
PreProcessor for target mean encoding a set of categorical values for a given field.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTargetMeanEncoding.BuilderNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params -
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseFieldCUSTOMstatic org.elasticsearch.common.ParseFieldDEFAULT_VALUEstatic org.elasticsearch.common.ParseFieldFEATURE_NAMEstatic org.elasticsearch.common.ParseFieldFIELDstatic java.lang.StringNAMEstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<TargetMeanEncoding,java.lang.Void>PARSERstatic org.elasticsearch.common.ParseFieldTARGET_MAPFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and Type Method Description TargetMeanEncoding.Builderbuilder(java.lang.String field)booleanequals(java.lang.Object o)static TargetMeanEncodingfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)java.lang.BooleangetCustom()doublegetDefaultValue()java.lang.StringgetFeatureName()java.lang.StringgetField()java.util.Map<java.lang.String,java.lang.Double>getMeanMap()java.lang.StringgetName()inthashCode()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
FIELD
public static final org.elasticsearch.common.ParseField FIELD -
FEATURE_NAME
public static final org.elasticsearch.common.ParseField FEATURE_NAME -
TARGET_MAP
public static final org.elasticsearch.common.ParseField TARGET_MAP -
DEFAULT_VALUE
public static final org.elasticsearch.common.ParseField DEFAULT_VALUE -
CUSTOM
public static final org.elasticsearch.common.ParseField CUSTOM -
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<TargetMeanEncoding,java.lang.Void> PARSER
-
-
Method Details
-
fromXContent
public static TargetMeanEncoding fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) -
getField
public java.lang.String getField()- Returns:
- Field name on which to target mean encode
-
getMeanMap
public java.util.Map<java.lang.String,java.lang.Double> getMeanMap()- Returns:
- Map of Value: targetMean for the target mean encoding
-
getDefaultValue
public double getDefaultValue()- Returns:
- The default value to set when a previously unobserved value is seen
-
getFeatureName
public java.lang.String getFeatureName()- Returns:
- The feature name for the encoded value
-
getCustom
public java.lang.Boolean getCustom() -
getName
public java.lang.String getName()- Specified by:
getNamein interfaceNamedXContentObject- Specified by:
getNamein interfacePreProcessor- Returns:
- The name of the pre-processor
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
builder
-