public enum KNNStrategy extends Enum<KNNStrategy>
| Enum Constant and Description |
|---|
SIMPLE
The default strategy.
|
WEIGHTED
A refinement of the k-NN classification algorithm is to weigh the contribution of each of the k neighbors
according to their distance to the query point, giving greater weight to closer neighbors.
|
| Modifier and Type | Method and Description |
|---|---|
static KNNStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KNNStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KNNStrategy SIMPLE
public static final KNNStrategy WEIGHTED
public static KNNStrategy[] values()
for (KNNStrategy c : KNNStrategy.values()) System.out.println(c);
public static KNNStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018