Package | Description |
---|---|
org.tribuo.common.nearest |
Provides a K-Nearest Neighbours implementation which works across
all Tribuo
Output types. |
Modifier and Type | Field and Description |
---|---|
KNNTrainer.Distance |
KNNClassifierOptions.knnDistance |
Modifier and Type | Method and Description |
---|---|
static KNNTrainer.Distance |
KNNTrainer.Distance.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KNNTrainer.Distance[] |
KNNTrainer.Distance.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
KNNTrainer(int k,
KNNTrainer.Distance distance,
int numThreads,
EnsembleCombiner<T> combiner,
KNNModel.Backend backend)
Creates a K-NN trainer using the supplied parameters.
|
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.