|
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.IterativeMatrixFactorizationFactory
public abstract class IterativeMatrixFactorizationFactory
A factory for IMatrixFactorizations.
| Field Summary | |
|---|---|
protected static int |
DEFAULT_K
The default number of base vectors |
protected static int |
DEFAULT_MAX_ITERATIONS
The default number of maximum iterations |
protected static boolean |
DEFAULT_ORDERED
|
protected static ISeedingStrategyFactory |
DEFAULT_SEEDING_FACTORY
Default matrix seeding strategy factory |
protected static double |
DEFAULT_STOP_THRESHOLD
The default stop threshold |
protected int |
k
The number of base vectors |
protected int |
maxIterations
The maximum number of iterations the algorithm is allowed to complete |
protected boolean |
ordered
Order base vectors according to their 'activity' |
protected ISeedingStrategyFactory |
seedingFactory
Matrix seeding strategy factory |
protected double |
stopThreshold
The algorithm's stop threshold |
| Constructor Summary | |
|---|---|
IterativeMatrixFactorizationFactory()
|
|
| Method Summary | |
|---|---|
protected ISeedingStrategy |
createSeedingStrategy()
Returns RandomSeedingStrategy with constant seed. |
int |
getK()
Returns the number of base vectors k . |
int |
getMaxIterations()
Returns the maximum number of iterations used by this factory. |
ISeedingStrategyFactory |
getSeedingFactory()
Returns the ISeedingStrategyFactory used by this factory. |
double |
getStopThreshold()
Returns the stop threshold used by this factory. |
boolean |
isOrdered()
Returns true when the factorization is set to generate an ordered
basis. |
void |
setK(int k)
Sets the number of base vectors k . |
void |
setMaxIterations(int maxIterations)
Sets the maximum number of iterations to be used by this factory. |
void |
setOrdered(boolean ordered)
Set to true to generate an ordered basis. |
void |
setSeedingFactory(ISeedingStrategyFactory seedingFactory)
Sets the ISeedingStrategyFactory to be used by this factory. |
void |
setStopThreshold(double stopThreshold)
Sets the stop threshold to be used by this factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.carrot2.matrix.factorization.IMatrixFactorizationFactory |
|---|
factorize |
| Field Detail |
|---|
protected int k
protected static final int DEFAULT_K
protected int maxIterations
protected static final int DEFAULT_MAX_ITERATIONS
protected double stopThreshold
protected static final double DEFAULT_STOP_THRESHOLD
protected ISeedingStrategyFactory seedingFactory
protected static final ISeedingStrategyFactory DEFAULT_SEEDING_FACTORY
protected boolean ordered
protected static final boolean DEFAULT_ORDERED
| Constructor Detail |
|---|
public IterativeMatrixFactorizationFactory()
| Method Detail |
|---|
public void setK(int k)
k - the number of base vectorspublic int getK()
protected ISeedingStrategy createSeedingStrategy()
RandomSeedingStrategy with constant seed.
public int getMaxIterations()
public void setMaxIterations(int maxIterations)
public double getStopThreshold()
public void setStopThreshold(double stopThreshold)
public ISeedingStrategyFactory getSeedingFactory()
ISeedingStrategyFactory used by this factory.
public void setSeedingFactory(ISeedingStrategyFactory seedingFactory)
ISeedingStrategyFactory to be used by this factory.
seedingFactory - public boolean isOrdered()
true when the factorization is set to generate an ordered
basis.
public void setOrdered(boolean ordered)
true to generate an ordered basis.
ordered -
|
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 | ||||||||