Package sklearn2pmml
Class EstimatorProxy
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,java.lang.Object>
-
- net.razorvine.pickle.objects.ClassDict
-
- org.jpmml.python.PythonObject
-
- sklearn.Step
-
- sklearn.Estimator
-
- sklearn2pmml.EstimatorProxy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>,HasClasses,HasEstimator<Estimator>,HasFeatureNamesIn,HasNumberOfFeatures,HasNumberOfOutputs,HasType,Proxy,HasPMMLOptions<Estimator>,HasPMMLSegmentId<Estimator>
public class EstimatorProxy extends Estimator implements HasClasses, HasEstimator<Estimator>, HasFeatureNamesIn, Proxy
- See Also:
- Serialized Form
-
-
Field Summary
-
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 EstimatorProxy()EstimatorProxy(java.lang.String module, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckFeatures(java.util.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.jpmml.converter.LabelencodeLabel(java.util.List<java.lang.String> names, SkLearnEncoder encoder)org.dmg.pmml.ModelencodeModel(org.jpmml.converter.Schema schema)static java.lang.StringformatProxyExample(Estimator estimator)java.lang.StringgetAlgorithmName()java.util.List<?>getClasses()org.dmg.pmml.DataTypegetDataType()EstimatorgetEstimator()java.util.List<java.lang.String>getFeatureNamesIn()org.dmg.pmml.MiningFunctiongetMiningFunction()intgetNumberOfFeatures()intgetNumberOfOutputs()org.dmg.pmml.OpTypegetOpType()java.util.Map<java.lang.String,?>getPMMLOptions()java.lang.ObjectgetPMMLSegmentId()booleanhasProbabilityDistribution()booleanisSupervised()EstimatorProxysetPMMLOptions(java.util.Map<java.lang.String,?> pmmlOptions)EstimatorProxysetPMMLSegmentId(java.lang.Object pmmlSegmentId)-
Methods inherited from class sklearn.Estimator
addFeatureImportances, createApplyField, createMultiApplyField, createPredictProbaFields, encode, encode, encodeApplyOutput, encodeMultiApplyOutput, getFeatureImportances, getOption, getPMMLCustomizations, getPMMLFeatureImportances, hasFeatureImportances, putOption, putOptions, setPMMLCustomizations, setPMMLFeatureImportances
-
Methods inherited from class sklearn.Step
checkSkLearnVersion, checkVersion, 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
-
-
-
-
Method Detail
-
getMiningFunction
public org.dmg.pmml.MiningFunction getMiningFunction()
- Specified by:
getMiningFunctionin classEstimator
-
isSupervised
public boolean isSupervised()
- Specified by:
isSupervisedin classEstimator
-
getOpType
public org.dmg.pmml.OpType getOpType()
-
getDataType
public org.dmg.pmml.DataType getDataType()
- Specified by:
getDataTypein interfaceHasType- Overrides:
getDataTypein classEstimator
-
getFeatureNamesIn
public java.util.List<java.lang.String> getFeatureNamesIn()
- Specified by:
getFeatureNamesInin interfaceHasFeatureNamesIn- Overrides:
getFeatureNamesInin classStep
-
getNumberOfFeatures
public int getNumberOfFeatures()
- Specified by:
getNumberOfFeaturesin interfaceHasNumberOfFeatures- Overrides:
getNumberOfFeaturesin classEstimator
-
getNumberOfOutputs
public int getNumberOfOutputs()
- Specified by:
getNumberOfOutputsin interfaceHasNumberOfOutputs- Overrides:
getNumberOfOutputsin classEstimator
-
getClasses
public java.util.List<?> getClasses()
- Specified by:
getClassesin interfaceHasClasses
-
hasProbabilityDistribution
public boolean hasProbabilityDistribution()
- Specified by:
hasProbabilityDistributionin interfaceHasClasses
-
getAlgorithmName
public java.lang.String getAlgorithmName()
- Overrides:
getAlgorithmNamein classEstimator
-
encodeLabel
public org.jpmml.converter.Label encodeLabel(java.util.List<java.lang.String> names, SkLearnEncoder encoder)- Specified by:
encodeLabelin classEstimator
-
encodeModel
public org.dmg.pmml.Model encodeModel(org.jpmml.converter.Schema schema)
- Specified by:
encodeModelin classEstimator
-
configureSchema
public org.jpmml.converter.Schema configureSchema(org.jpmml.converter.Schema schema)
- Overrides:
configureSchemain classEstimator
-
configureModel
public org.dmg.pmml.Model configureModel(org.dmg.pmml.Model model)
- Overrides:
configureModelin classEstimator
-
checkLabel
public void checkLabel(org.jpmml.converter.Label label)
- Overrides:
checkLabelin classEstimator
-
checkFeatures
public void checkFeatures(java.util.List<? extends org.jpmml.converter.Feature> features)
- Overrides:
checkFeaturesin classEstimator
-
getEstimator
public Estimator getEstimator()
- Specified by:
getEstimatorin interfaceHasEstimator<Estimator>
-
getPMMLOptions
public java.util.Map<java.lang.String,?> getPMMLOptions()
- Specified by:
getPMMLOptionsin interfaceHasPMMLOptions<Estimator>- Overrides:
getPMMLOptionsin classEstimator
-
setPMMLOptions
public EstimatorProxy setPMMLOptions(java.util.Map<java.lang.String,?> pmmlOptions)
- Specified by:
setPMMLOptionsin interfaceHasPMMLOptions<Estimator>- Overrides:
setPMMLOptionsin classEstimator
-
getPMMLSegmentId
public java.lang.Object getPMMLSegmentId()
- Specified by:
getPMMLSegmentIdin interfaceHasPMMLSegmentId<Estimator>- Overrides:
getPMMLSegmentIdin classEstimator
-
setPMMLSegmentId
public EstimatorProxy setPMMLSegmentId(java.lang.Object pmmlSegmentId)
- Specified by:
setPMMLSegmentIdin interfaceHasPMMLSegmentId<Estimator>- Overrides:
setPMMLSegmentIdin classEstimator
-
formatProxyExample
public static java.lang.String formatProxyExample(Estimator estimator)
-
-