|
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.IterationNumberGuesser
public class IterationNumberGuesser
This class helps to guesstimate the number of iterations for iterative factorization algorithms. Note: for the time being it uses a very simple linear model with lots of dodgy assumptions.
| Nested Class Summary | |
|---|---|
static class |
IterationNumberGuesser.FactorizationQuality
Factorization quality. |
| Constructor Summary | |
|---|---|
IterationNumberGuesser()
|
|
| Method Summary | |
|---|---|
static boolean |
setEstimatedIterationsNumber(IterativeMatrixFactorizationFactory factory,
org.apache.mahout.math.matrix.DoubleMatrix2D A,
IterationNumberGuesser.FactorizationQuality qualityLevel)
Sets the guesstimated iterations number in the factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IterationNumberGuesser()
| Method Detail |
|---|
public static boolean setEstimatedIterationsNumber(IterativeMatrixFactorizationFactory factory,
org.apache.mahout.math.matrix.DoubleMatrix2D A,
IterationNumberGuesser.FactorizationQuality qualityLevel)
factory. Different
models are used depending on the actual factorization algorithm, the seeding
strategy and the qualityLevel. For the time being a crude linear model
is assumed based on:
A. The number of rows is assumed to be
2.8 bigger than the number of rows (2.8 is pretty much random, the value is taken
from an application to search results clustering). In case matrix has different
proportions, the size will be scaled so that the cardinality of the matrix (total
number of elements) is maintained. The model supports column counts (after scaling)
ranging from 50 to 400.
true will be returned.
|
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 | ||||||||