|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.matrix.factorization.seeding.KMeansSeedingStrategy
public class KMeansSeedingStrategy
Matrix seeding based on the k-means algorithms.
| Constructor Summary | |
|---|---|
KMeansSeedingStrategy()
Creates the KMeansSeedingStrategy. |
|
KMeansSeedingStrategy(int maxIterations)
Creates the KMeansSeedingStrategy. |
|
| Method Summary | |
|---|---|
void |
seed(org.apache.mahout.math.matrix.DoubleMatrix2D A,
org.apache.mahout.math.matrix.DoubleMatrix2D U,
org.apache.mahout.math.matrix.DoubleMatrix2D V)
Initializes values of the provided U and V matrices. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KMeansSeedingStrategy()
public KMeansSeedingStrategy(int maxIterations)
maxIterations - maximum number of KMeans iterations.| Method Detail |
|---|
public void seed(org.apache.mahout.math.matrix.DoubleMatrix2D A,
org.apache.mahout.math.matrix.DoubleMatrix2D U,
org.apache.mahout.math.matrix.DoubleMatrix2D V)
ISeedingStrategy
seed in interface ISeedingStrategyA - matrix to be factorizedU - left factorized matrix to be seededV - right factorized matrix to be seededpublic String toString()
toString in class Object
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||