public class KNeighborsRegressor extends Regressor implements HasNeighbors, HasTrainingData
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
KNeighborsRegressor(String module,
String name) |
| Modifier and Type | Method and Description |
|---|---|
org.dmg.pmml.nearest_neighbor.NearestNeighborModel |
encodeModel(org.jpmml.converter.Schema schema) |
org.dmg.pmml.DataType |
getDataType() |
List<? extends Number> |
getFitX() |
int[] |
getFitXShape() |
String |
getMetric() |
int |
getNumberOfFeatures() |
int |
getNumberOfNeighbors() |
int |
getP() |
String |
getWeights() |
List<? extends Number> |
getY() |
getMiningFunction, isSupervisedgetOption, getOpType, getSkLearnVersionget, getArray, getArray, getArrayShape, getArrayShape, getBoolean, getInteger, getIntegerArray, getList, getList, getNumber, getObject, getOptional, getOptionalBoolean, getOptionalObject, getOptionalString, getScalar, getString, getTuple, getTupleListclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic int getNumberOfFeatures()
getNumberOfFeatures in interface HasNumberOfFeaturesgetNumberOfFeatures in class Estimatorpublic org.dmg.pmml.DataType getDataType()
getDataType in class Estimatorpublic org.dmg.pmml.nearest_neighbor.NearestNeighborModel encodeModel(org.jpmml.converter.Schema schema)
encodeModel in class Estimatorpublic String getMetric()
getMetric in interface HasNeighborspublic int getNumberOfNeighbors()
getNumberOfNeighbors in interface HasNeighborspublic int getP()
getP in interface HasNeighborspublic String getWeights()
getWeights in interface HasNeighborspublic List<? extends Number> getFitX()
getFitX in interface HasTrainingDatapublic int[] getFitXShape()
public List<? extends Number> getY()
getY in interface HasTrainingDataCopyright © 2019. All rights reserved.