public class KNeighborsClassifier extends BasePythonClassifier
| Modifier and Type | Class and Description |
|---|---|
static class |
KNeighborsClassifier.Builder
The type Builder.
|
| Modifier and Type | Method and Description |
|---|---|
static KNeighborsClassifier.Builder |
builder()
Construct new builder instance.
|
AlgorithmType |
getAlgorithm()
Gets algorithm used to compute the nearest neighbors.
|
DistanceMetricType |
getDistanceMetric()
Gets the distance metric to use for the tree.
|
int |
getJobs()
Gets the number of jobs to run in parallel for both fit and predict.
|
int |
getLeafSize()
Gets the leaf size.
|
int |
getNeighbors()
Gets number of neighbors to use by default for kneighbors queries.
|
int |
getPower()
Gets the power parameter for the Minkowski metric.
|
WeightFunctionType |
getWeightFunction()
Gets the weight function used in prediction.
|
close, fit, getModelName, getSerializableModel, getWorkingDir, init, predictpublic int getNeighbors()
public WeightFunctionType getWeightFunction()
public AlgorithmType getAlgorithm()
public int getLeafSize()
public DistanceMetricType getDistanceMetric()
public int getPower()
public int getJobs()
public static KNeighborsClassifier.Builder builder()
Copyright © 2020. All rights reserved.