Package | Description |
---|---|
org.tribuo.clustering.kmeans |
Provides a multithreaded implementation of K-Means, with a
configurable distance function.
|
Modifier and Type | Field and Description |
---|---|
KMeansTrainer.Distance |
TrainTest.KMeansOptions.distance |
KMeansTrainer.Distance |
KMeansOptions.distance |
Modifier and Type | Method and Description |
---|---|
static KMeansTrainer.Distance |
KMeansTrainer.Distance.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KMeansTrainer.Distance[] |
KMeansTrainer.Distance.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
KMeansTrainer(int centroids,
int iterations,
KMeansTrainer.Distance distanceType,
int numThreads,
long seed)
Constructs a K-Means trainer using the supplied parameters and the default random initialisation.
|
KMeansTrainer(int centroids,
int iterations,
KMeansTrainer.Distance distanceType,
KMeansTrainer.Initialisation initialisationType,
int numThreads,
long seed)
Constructs a K-Means trainer using the supplied parameters.
|
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.