Package sklearn.neighbors
Class KNeighborsRegressor
- 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.Regressor
-
- sklearn.neighbors.KNeighborsRegressor
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>,HasNumberOfFeatures,HasNumberOfOutputs,HasType,HasMetric,HasNumberOfNeighbors,HasTrainingData
public class KNeighborsRegressor extends Regressor implements HasMetric, HasNumberOfNeighbors, HasTrainingData
- 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 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 KNeighborsRegressor(String module, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dmg.pmml.nearest_neighbor.NearestNeighborModelencodeModel(org.jpmml.converter.Schema schema)org.dmg.pmml.DataTypegetDataType()List<? extends Number>getFitX()int[]getFitXShape()List<?>getId()StringgetMetric()intgetNumberOfFeatures()intgetNumberOfNeighbors()intgetNumberOfOutputs()intgetP()StringgetWeights()List<? extends Number>getY()int[]getYShape()-
Methods inherited from class sklearn.Regressor
getMiningFunction
-
Methods inherited from class sklearn.Estimator
addFeatureImportances, checkFeatures, checkLabel, encode, getAlgorithmName, getFeatureImportances, getOption, getOpType, getPMMLFeatureImportances, getPMMLOptions, getSkLearnVersion, hasFeatureImportances, isSupervised, putOption, putOptions, setPMMLFeatureImportances, setPMMLOptions
-
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
-
getNumberOfFeatures
public int getNumberOfFeatures()
- Specified by:
getNumberOfFeaturesin interfaceHasNumberOfFeatures- Overrides:
getNumberOfFeaturesin classEstimator
-
getNumberOfOutputs
public int getNumberOfOutputs()
- Specified by:
getNumberOfOutputsin interfaceHasNumberOfOutputs- Overrides:
getNumberOfOutputsin classEstimator
-
getDataType
public org.dmg.pmml.DataType getDataType()
- Specified by:
getDataTypein interfaceHasType- Overrides:
getDataTypein classEstimator
-
encodeModel
public org.dmg.pmml.nearest_neighbor.NearestNeighborModel encodeModel(org.jpmml.converter.Schema schema)
- Specified by:
encodeModelin classEstimator
-
getNumberOfNeighbors
public int getNumberOfNeighbors()
- Specified by:
getNumberOfNeighborsin interfaceHasNumberOfNeighbors
-
getFitX
public List<? extends Number> getFitX()
- Specified by:
getFitXin interfaceHasTrainingData
-
getFitXShape
public int[] getFitXShape()
- Specified by:
getFitXShapein interfaceHasTrainingData
-
getId
public List<?> getId()
- Specified by:
getIdin interfaceHasTrainingData
-
getY
public List<? extends Number> getY()
- Specified by:
getYin interfaceHasTrainingData
-
getYShape
public int[] getYShape()
- Specified by:
getYShapein interfaceHasTrainingData
-
getWeights
public String getWeights()
-
-