Package sklearn
Class Estimator
- 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
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>,HasNumberOfFeatures,HasNumberOfOutputs,HasType
- Direct Known Subclasses:
Classifier,Clusterer,EstimatorChain,EstimatorProxy,Link,Regressor
public abstract class Estimator extends Step implements HasNumberOfOutputs
- 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_APPLYstatic StringFIELD_DECISION_FUNCTIONstatic StringFIELD_PREDICT-
Fields inherited from interface sklearn.HasNumberOfFeatures
UNKNOWN
-
Fields inherited from interface sklearn.HasNumberOfOutputs
UNKNOWN
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddFeatureImportances(org.dmg.pmml.Model model, org.jpmml.converter.Schema schema)voidcheckFeatures(List<? extends org.jpmml.converter.Feature> features)voidcheckLabel(org.jpmml.converter.Label label)org.dmg.pmml.Modelencode(org.jpmml.converter.Schema schema)abstract org.dmg.pmml.ModelencodeModel(org.jpmml.converter.Schema schema)StringgetAlgorithmName()org.dmg.pmml.DataTypegetDataType()List<? extends Number>getFeatureImportances()abstract org.dmg.pmml.MiningFunctiongetMiningFunction()intgetNumberOfFeatures()intgetNumberOfOutputs()ObjectgetOption(String key, Object defaultValue)org.dmg.pmml.OpTypegetOpType()List<? extends Number>getPMMLFeatureImportances()Map<String,?>getPMMLOptions()StringgetSkLearnVersion()booleanhasFeatureImportances()booleanisSupervised()voidputOption(String key, Object value)voidputOptions(Map<String,?> options)EstimatorsetPMMLFeatureImportances(List<? extends Number> pmmlFeatureImportances)EstimatorsetPMMLOptions(Map<String,?> pmmlOptions)-
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
-
-
-
-
Field Detail
-
FIELD_APPLY
public static final String FIELD_APPLY
- See Also:
- Constant Field Values
-
FIELD_DECISION_FUNCTION
public static final String FIELD_DECISION_FUNCTION
- See Also:
- Constant Field Values
-
FIELD_PREDICT
public static final String FIELD_PREDICT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMiningFunction
public abstract org.dmg.pmml.MiningFunction getMiningFunction()
-
encodeModel
public abstract org.dmg.pmml.Model encodeModel(org.jpmml.converter.Schema schema)
-
getNumberOfFeatures
public int getNumberOfFeatures()
- Specified by:
getNumberOfFeaturesin interfaceHasNumberOfFeatures
-
getNumberOfOutputs
public int getNumberOfOutputs()
- Specified by:
getNumberOfOutputsin interfaceHasNumberOfOutputs
-
getDataType
public org.dmg.pmml.DataType getDataType()
- Specified by:
getDataTypein interfaceHasType
-
isSupervised
public boolean isSupervised()
-
getAlgorithmName
public String getAlgorithmName()
-
encode
public org.dmg.pmml.Model encode(org.jpmml.converter.Schema schema)
-
checkLabel
public void checkLabel(org.jpmml.converter.Label label)
-
checkFeatures
public void checkFeatures(List<? extends org.jpmml.converter.Feature> features)
-
addFeatureImportances
public void addFeatureImportances(org.dmg.pmml.Model model, org.jpmml.converter.Schema schema)
-
hasFeatureImportances
public boolean hasFeatureImportances()
-
setPMMLFeatureImportances
public Estimator setPMMLFeatureImportances(List<? extends Number> pmmlFeatureImportances)
-
getSkLearnVersion
public String getSkLearnVersion()
-
-