public class KNeighborsClassifier extends SkLearnClassifier implements HasMetric, HasNumberOfNeighbors, HasTrainingData
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>FIELD_PROBABILITYFIELD_APPLY, FIELD_DECISION_FUNCTION, FIELD_PREDICTUNKNOWNUNKNOWN| Constructor and Description |
|---|
KNeighborsClassifier(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() |
List<?> |
getId() |
String |
getMetric() |
int |
getNumberOfFeatures() |
int |
getNumberOfNeighbors() |
int |
getNumberOfOutputs() |
int |
getP() |
String |
getWeights() |
List<? extends Number> |
getY() |
int[] |
getYShape() |
boolean |
hasProbabilityDistribution() |
encodePMMLencodeLabel, encodeLabel, encodePredictProbaOutput, getClasses, getMiningFunction, isSupervisedaddFeatureImportances, checkFeatures, checkLabel, createApplyField, createMultiApplyField, createPredictProbaFields, encode, encode, encodeApplyOutput, encodeMultiApplyOutput, extractArguments, getAlgorithmName, getFeatureImportances, getOption, getOpType, getPMMLFeatureImportances, getPMMLOptions, getPMMLSegmentId, hasFeatureImportances, putOption, putOptions, setPMMLFeatureImportances, setPMMLOptions, setPMMLSegmentIdcheckSkLearnVersion, checkVersion, getFeatureNamesIn, getPMMLName, getSkLearnVersion, setPMMLNameget, 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, setClassNameclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetFeatureNamesInpublic int getNumberOfFeatures()
getNumberOfFeatures in interface HasNumberOfFeaturesgetNumberOfFeatures in class Estimatorpublic int getNumberOfOutputs()
getNumberOfOutputs in interface HasNumberOfOutputsgetNumberOfOutputs in class Classifierpublic org.dmg.pmml.DataType getDataType()
getDataType in interface HasTypegetDataType in class Estimatorpublic boolean hasProbabilityDistribution()
hasProbabilityDistribution in interface HasClasseshasProbabilityDistribution in class Classifierpublic org.dmg.pmml.nearest_neighbor.NearestNeighborModel encodeModel(org.jpmml.converter.Schema schema)
encodeModel in class Estimatorpublic int getNumberOfNeighbors()
getNumberOfNeighbors in interface HasNumberOfNeighborspublic List<? extends Number> getFitX()
getFitX in interface HasTrainingDatapublic int[] getFitXShape()
getFitXShape in interface HasTrainingDatapublic List<?> getId()
getId in interface HasTrainingDatapublic List<? extends Number> getY()
getY in interface HasTrainingDatapublic int[] getYShape()
getYShape in interface HasTrainingDatapublic String getWeights()
Copyright © 2023. All rights reserved.