Package org.tribuo.clustering.kmeans
Class TrainTest.KMeansOptions
java.lang.Object
org.tribuo.clustering.kmeans.TrainTest.KMeansOptions
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Options
- Enclosing class:
- TrainTest
public static class TrainTest.KMeansOptions
extends Object
implements com.oracle.labs.mlrg.olcut.config.Options
Options for the K-Means CLI.
-
Field Summary
Modifier and TypeFieldDescriptionint
Number of clusters to infer.Distance function to use in the e step.The data loading options.Type of initialisation to use for centroids.int
Maximum number of iterations.int
Number of threads to use (range (1, num hw threads)).Fields inherited from interface com.oracle.labs.mlrg.olcut.config.Options
header
-
Constructor Summary
-
Method Summary
-
Field Details
-
general
The data loading options. -
centroids
@Option(charName='n', longName="num-clusters", usage="Number of clusters to infer.") public int centroidsNumber of clusters to infer. -
iterations
@Option(charName='i', longName="iterations", usage="Maximum number of iterations.") public int iterationsMaximum number of iterations. -
distance
@Option(charName='d', longName="distance", usage="Distance function to use in the e step.") public KMeansTrainer.Distance distanceDistance function to use in the e step. -
initialisation
@Option(charName='s', longName="initialisation", usage="Type of initialisation to use for centroids.") public KMeansTrainer.Initialisation initialisationType of initialisation to use for centroids. -
numThreads
@Option(charName='t', longName="num-threads", usage="Number of threads to use (range (1, num hw threads)).") public int numThreadsNumber of threads to use (range (1, num hw threads)).
-
-
Constructor Details
-
KMeansOptions
public KMeansOptions()
-
-
Method Details
-
getOptionsDescription
- Specified by:
getOptionsDescription
in interfacecom.oracle.labs.mlrg.olcut.config.Options
-