public enum CategoricalEncoding extends java.lang.Enum<CategoricalEncoding>
Enum Constant and Description |
---|
AUTO |
Binary |
Eigen |
EnumLimited |
LabelEncoder |
OneHotExplicit |
Modifier and Type | Method and Description |
---|---|
abstract java.util.Map<java.lang.Integer,CategoricalEncoder> |
createCategoricalEncoders(GenModel m,
java.util.Map<java.lang.String,java.lang.Integer> columnMapping) |
abstract java.util.Map<java.lang.String,java.lang.Integer> |
createColumnMapping(GenModel m) |
boolean |
isParametrized()
Does the categorical encoding have any parameters that are needed to correctly interpret it?
Eg.: number of classes for EnumLimited
|
static CategoricalEncoding |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CategoricalEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CategoricalEncoding AUTO
public static final CategoricalEncoding OneHotExplicit
public static final CategoricalEncoding Binary
public static final CategoricalEncoding EnumLimited
public static final CategoricalEncoding Eigen
public static final CategoricalEncoding LabelEncoder
public static CategoricalEncoding[] values()
for (CategoricalEncoding c : CategoricalEncoding.values()) System.out.println(c);
public static CategoricalEncoding valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract java.util.Map<java.lang.String,java.lang.Integer> createColumnMapping(GenModel m)
public abstract java.util.Map<java.lang.Integer,CategoricalEncoder> createCategoricalEncoders(GenModel m, java.util.Map<java.lang.String,java.lang.Integer> columnMapping)
public boolean isParametrized()