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,HasPMMLOptions<Estimator>,HasPMMLSegmentId<Estimator>
- Direct Known Subclasses:
Classifier,Clusterer,EstimatorChain,EstimatorProxy,Link,Regressor
public abstract class Estimator extends Step implements HasNumberOfOutputs, HasPMMLOptions<Estimator>, HasPMMLSegmentId<Estimator>
- 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.ModelconfigureModel(org.dmg.pmml.Model model)org.jpmml.converter.SchemaconfigureSchema(org.jpmml.converter.Schema schema)org.dmg.pmml.OutputFieldcreateApplyField(org.dmg.pmml.DataType dataType)org.dmg.pmml.OutputFieldcreateMultiApplyField(org.dmg.pmml.DataType dataType, String segmentId)List<org.dmg.pmml.OutputField>createPredictProbaFields(org.dmg.pmml.DataType dataType, org.jpmml.converter.DiscreteLabel discreteLabel)org.dmg.pmml.Modelencode(Object segmentId, org.jpmml.converter.Schema schema)org.dmg.pmml.Modelencode(org.jpmml.converter.Schema schema)org.dmg.pmml.OutputFieldencodeApplyOutput(org.dmg.pmml.Model model, org.dmg.pmml.DataType dataType)abstract org.jpmml.converter.LabelencodeLabel(List<String> names, SkLearnEncoder encoder)abstract org.dmg.pmml.ModelencodeModel(org.jpmml.converter.Schema schema)List<org.dmg.pmml.OutputField>encodeMultiApplyOutput(org.dmg.pmml.Model model, org.dmg.pmml.DataType dataType, List<String> segmentIds)StringgetAlgorithmName()org.dmg.pmml.DataTypegetDataType()List<Number>getFeatureImportances()abstract org.dmg.pmml.MiningFunctiongetMiningFunction()intgetNumberOfFeatures()intgetNumberOfOutputs()ObjectgetOption(String key, Object defaultValue)org.dmg.pmml.OpTypegetOpType()List<Customization>getPMMLCustomizations()List<Number>getPMMLFeatureImportances()Map<String,?>getPMMLOptions()ObjectgetPMMLSegmentId()booleanhasFeatureImportances()abstract booleanisSupervised()voidputOption(String key, Object value)voidputOptions(Map<String,?> options)EstimatorsetPMMLCustomizations(List<? extends Customization> pmmlCustomizations)EstimatorsetPMMLFeatureImportances(List<Number> pmmlFeatureImportances)EstimatorsetPMMLOptions(Map<String,?> pmmlOptions)EstimatorsetPMMLSegmentId(Object pmmlSegmentId)-
Methods inherited from class sklearn.Step
checkSkLearnVersion, checkVersion, getFeatureNamesIn, getPMMLName, 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_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()
-
isSupervised
public abstract boolean isSupervised()
-
encodeLabel
public abstract org.jpmml.converter.Label encodeLabel(List<String> names, SkLearnEncoder encoder)
-
encodeModel
public abstract org.dmg.pmml.Model encodeModel(org.jpmml.converter.Schema schema)
-
getDataType
public org.dmg.pmml.DataType getDataType()
- Specified by:
getDataTypein interfaceHasType
-
getNumberOfFeatures
public int getNumberOfFeatures()
- Specified by:
getNumberOfFeaturesin interfaceHasNumberOfFeatures
-
getNumberOfOutputs
public int getNumberOfOutputs()
- Specified by:
getNumberOfOutputsin interfaceHasNumberOfOutputs
-
getAlgorithmName
public String getAlgorithmName()
-
encode
public org.dmg.pmml.Model encode(org.jpmml.converter.Schema schema)
-
encode
public org.dmg.pmml.Model encode(Object segmentId, org.jpmml.converter.Schema schema)
-
configureSchema
public org.jpmml.converter.Schema configureSchema(org.jpmml.converter.Schema schema)
-
configureModel
public org.dmg.pmml.Model configureModel(org.dmg.pmml.Model model)
-
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)
-
getPMMLCustomizations
public List<Customization> getPMMLCustomizations()
-
setPMMLCustomizations
public Estimator setPMMLCustomizations(List<? extends Customization> pmmlCustomizations)
-
hasFeatureImportances
public boolean hasFeatureImportances()
-
setPMMLFeatureImportances
public Estimator setPMMLFeatureImportances(List<Number> pmmlFeatureImportances)
-
getPMMLOptions
public Map<String,?> getPMMLOptions()
- Specified by:
getPMMLOptionsin interfaceHasPMMLOptions<Estimator>
-
setPMMLOptions
public Estimator setPMMLOptions(Map<String,?> pmmlOptions)
- Specified by:
setPMMLOptionsin interfaceHasPMMLOptions<Estimator>
-
getPMMLSegmentId
public Object getPMMLSegmentId()
- Specified by:
getPMMLSegmentIdin interfaceHasPMMLSegmentId<Estimator>
-
setPMMLSegmentId
public Estimator setPMMLSegmentId(Object pmmlSegmentId)
- Specified by:
setPMMLSegmentIdin interfaceHasPMMLSegmentId<Estimator>
-
createPredictProbaFields
public List<org.dmg.pmml.OutputField> createPredictProbaFields(org.dmg.pmml.DataType dataType, org.jpmml.converter.DiscreteLabel discreteLabel)
-
createApplyField
public org.dmg.pmml.OutputField createApplyField(org.dmg.pmml.DataType dataType)
-
encodeApplyOutput
public org.dmg.pmml.OutputField encodeApplyOutput(org.dmg.pmml.Model model, org.dmg.pmml.DataType dataType)
-
createMultiApplyField
public org.dmg.pmml.OutputField createMultiApplyField(org.dmg.pmml.DataType dataType, String segmentId)
-
-