Package category_encoders
Class MeanEncoder
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- net.razorvine.pickle.objects.ClassDict
-
- org.jpmml.python.PythonObject
-
- sklearn.Step
-
- sklearn.Transformer
-
- category_encoders.CategoryEncoder
-
- category_encoders.MapEncoder
-
- category_encoders.MeanEncoder
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>,HasNumberOfFeatures,HasType
- Direct Known Subclasses:
CatBoostEncoder,LeaveOneOutEncoder
public abstract class MeanEncoder extends MapEncoder
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMeanEncoder.MeanFunction-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
-
Fields inherited from class category_encoders.CategoryEncoder
CATEGORY_NAN
-
Fields inherited from interface sklearn.HasNumberOfFeatures
UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description MeanEncoder(String module, String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract MeanEncoder.MeanFunctioncreateFunction()List<org.jpmml.converter.Feature>encodeFeatures(List<org.jpmml.converter.Feature> features, SkLearnEncoder encoder)Map<Object,pandas.core.Series>getMapping()DoublegetMean()-
Methods inherited from class category_encoders.MapEncoder
functionName
-
Methods inherited from class category_encoders.CategoryEncoder
getCols, getDataType, getDropInvariant, getHandleMissing, getHandleUnknown, getInvariantCols, getOpType
-
Methods inherited from class sklearn.Transformer
checkFeatures, encode, getDType, getNumberOfFeatures, getOptionalDType, updateDataField, updateFeatures
-
Methods inherited from class sklearn.Step
createFieldName, createFieldName, createFieldName, getPMMLName, setPMMLName
-
Methods inherited from class org.jpmml.python.PythonObject
get, getArray, getArray, getArray, getArrayShape, getArrayShape, getBoolean, getBooleanArray, getClassName, getDict, getInteger, getIntegerArray, getList, getList, getListLike, getListLike, getNumber, getNumberArray, getObject, getOptional, getOptionalBoolean, getOptionalObject, getOptionalScalar, getOptionalString, getPythonModule, getPythonName, getPythonObject, getScalar, getString, getTuple, getTupleList, setClassName
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
createFunction
public abstract MeanEncoder.MeanFunction createFunction()
-
encodeFeatures
public List<org.jpmml.converter.Feature> encodeFeatures(List<org.jpmml.converter.Feature> features, SkLearnEncoder encoder)
- Specified by:
encodeFeaturesin classTransformer
-
getMapping
public Map<Object,pandas.core.Series> getMapping()
- Overrides:
getMappingin classMapEncoder
-
getMean
public Double getMean()
-
-