Package sklearn
Class Classifier
- 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.Estimator
-
- sklearn.Classifier
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>,HasClasses,HasNumberOfFeatures,HasNumberOfOutputs,HasType,HasPMMLOptions<Estimator>,HasPMMLSegmentId<Estimator>
- Direct Known Subclasses:
CHAIDClassifier,CompositeClassifier,ExpressionClassifier,GBDTLRClassifier,LabelEncoderClassifier,RuleSetClassifier,SelectFirstClassifier,SkLearnClassifier
public abstract class Classifier extends Estimator implements HasClasses
- 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 Modifier and Type Field Description static StringFIELD_PROBABILITY-
Fields inherited from class sklearn.Estimator
FIELD_APPLY, FIELD_DECISION_FUNCTION, FIELD_PREDICT
-
Fields inherited from interface sklearn.HasNumberOfFeatures
UNKNOWN
-
Fields inherited from interface sklearn.HasNumberOfOutputs
UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description Classifier(String module, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectcanonicalizeValue(Object value)static List<?>canonicalizeValues(List<?> values)org.jpmml.converter.LabelencodeLabel(List<String> names, SkLearnEncoder encoder)List<org.dmg.pmml.OutputField>encodePredictProbaOutput(org.dmg.pmml.Model model, org.dmg.pmml.DataType dataType, org.jpmml.converter.DiscreteLabel discreteLabel)List<?>getClasses()org.dmg.pmml.MiningFunctiongetMiningFunction()intgetNumberOfOutputs()booleanhasProbabilityDistribution()booleanisSupervised()-
Methods inherited from class sklearn.Estimator
addFeatureImportances, checkFeatures, checkLabel, configureModel, configureSchema, createApplyField, createMultiApplyField, createPredictProbaFields, encode, encode, encodeApplyOutput, encodeModel, encodeMultiApplyOutput, getAlgorithmName, getClassifierTags, getDataType, getFeatureImportances, getNumberOfFeatures, getOption, getOpType, getPMMLCustomizations, getPMMLFeatureImportances, getPMMLOptions, getPMMLSegmentId, getRegressorTags, getTargetTags, hasFeatureImportances, putOption, putOptions, setPMMLCustomizations, setPMMLFeatureImportances, setPMMLOptions, setPMMLSegmentId
-
Methods inherited from class sklearn.Step
checkSkLearnVersion, checkVersion, getFeatureNamesIn, getInputTags, getPMMLName, getSkLearnTags, getSkLearnVersion, setPMMLName
-
Methods inherited from class org.jpmml.python.PythonObject
containsKey, delattr, get, get, getArray, getArray, getArray, getArrayList, getArrayList, getArrayShape, getArrayShape, getattr, getattr, getBoolean, getBooleanArray, getClassName, getDict, getEnum, getEnumList, getIdentifiable, getInteger, getIntegerArray, getList, getList, getListLike, getListLike, getNumber, getNumberArray, getObject, getObjectArray, getObjectList, getOptional, getOptionalBoolean, getOptionalBoolean, getOptionalDict, getOptionalEnum, getOptionalIdentifiable, getOptionalInteger, getOptionalNumber, getOptionalObject, getOptionalScalar, getOptionalString, getOptionalTuple, getPythonModule, getPythonName, getScalar, getString, getStringArray, getStringList, getTuple, getTupleList, hasattr, put, putAll, remove, setattr, setClassName, update
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Field Detail
-
FIELD_PROBABILITY
public static final String FIELD_PROBABILITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMiningFunction
public org.dmg.pmml.MiningFunction getMiningFunction()
- Specified by:
getMiningFunctionin classEstimator
-
isSupervised
public boolean isSupervised()
- Specified by:
isSupervisedin classEstimator
-
getNumberOfOutputs
public int getNumberOfOutputs()
- Specified by:
getNumberOfOutputsin interfaceHasNumberOfOutputs- Overrides:
getNumberOfOutputsin classEstimator
-
getClasses
public List<?> getClasses()
- Specified by:
getClassesin interfaceHasClasses
-
hasProbabilityDistribution
public boolean hasProbabilityDistribution()
- Specified by:
hasProbabilityDistributionin interfaceHasClasses
-
encodeLabel
public org.jpmml.converter.Label encodeLabel(List<String> names, SkLearnEncoder encoder)
- Specified by:
encodeLabelin classEstimator
-
encodePredictProbaOutput
public List<org.dmg.pmml.OutputField> encodePredictProbaOutput(org.dmg.pmml.Model model, org.dmg.pmml.DataType dataType, org.jpmml.converter.DiscreteLabel discreteLabel)
-
-