public class KMeansSeedingStrategy extends Object implements ISeedingStrategy
Constructor and Description |
---|
KMeansSeedingStrategy()
Creates the KMeansSeedingStrategy.
|
KMeansSeedingStrategy(int maxIterations)
Creates the KMeansSeedingStrategy.
|
Modifier and Type | Method and Description |
---|---|
void |
seed(DoubleMatrix2D A,
DoubleMatrix2D U,
DoubleMatrix2D V)
Initializes values of the provided U and V matrices.
|
String |
toString() |
public KMeansSeedingStrategy()
public KMeansSeedingStrategy(int maxIterations)
maxIterations
- maximum number of KMeans iterations.public void seed(DoubleMatrix2D A, DoubleMatrix2D U, DoubleMatrix2D V)
ISeedingStrategy
seed
in interface ISeedingStrategy
A
- matrix to be factorizedU
- left factorized matrix to be seededV
- right factorized matrix to be seeded