Package category_encoders
Class CountEncoder
- 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.CountEncoder
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>,HasNumberOfFeatures,HasType
public class CountEncoder extends MapEncoder
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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 CountEncoder(String module, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.jpmml.converter.Feature>encodeFeatures(List<org.jpmml.converter.Feature> features, SkLearnEncoder encoder)StringfunctionName()IntegergetDefaultValue()StringgetHandleUnknown()Map<Object,Map<Object,String>>getMinGroupCategories()BooleangetNormalize()-
Methods inherited from class category_encoders.MapEncoder
getMapping
-
Methods inherited from class category_encoders.CategoryEncoder
getCols, getDataType, getDropInvariant, getHandleMissing, 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
-
functionName
public String functionName()
- Specified by:
functionNamein classMapEncoder
-
encodeFeatures
public List<org.jpmml.converter.Feature> encodeFeatures(List<org.jpmml.converter.Feature> features, SkLearnEncoder encoder)
- Specified by:
encodeFeaturesin classTransformer
-
getDefaultValue
public Integer getDefaultValue()
-
getHandleUnknown
public String getHandleUnknown()
- Overrides:
getHandleUnknownin classCategoryEncoder
-
getNormalize
public Boolean getNormalize()
-
-