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()
The
data type of active fields. |
List<? extends Number> |
getFitX() |
String |
getMetric() |
int |
getNumberOfFeatures() |
int |
getNumberOfNeighbors() |
int |
getP() |
String |
getWeights() |
List<? extends Number> |
getY() |
getMiningFunction, isSupervisedencodeModel, getOpTypeclear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic int getNumberOfFeatures()
getNumberOfFeatures in interface HasNumberOfFeaturesgetNumberOfFeatures in class Estimatorpublic org.dmg.pmml.DataType getDataType()
Estimatordata type of active fields.getDataType in class Estimatorpublic org.dmg.pmml.nearest_neighbor.NearestNeighborModel encodeModel(org.jpmml.converter.Schema schema)
encodeModel in class Estimatorpublic int getNumberOfNeighbors()
getNumberOfNeighbors in interface HasNeighborspublic String getWeights()
getWeights in interface HasNeighborspublic String getMetric()
getMetric in interface HasNeighborspublic int getP()
getP in interface HasNeighborspublic List<? extends Number> getY()
getY in interface HasTrainingDatapublic List<? extends Number> getFitX()
getFitX in interface HasTrainingDataCopyright © 2017. All Rights Reserved.