|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.knowceans.dirichlet.lda.LdaConfiguration
public class LdaConfiguration
LdaConfiguration handles the configuration of an lda gibbs sampler. The fields are public to save the time for getter method calls in inner loops.
Field Summary | |
---|---|
double |
alpha
Dirichlet parameter (document--topic associations) |
double |
beta
Dirichlet parameter (topic--term associations) |
int |
burnIn
burn-in period |
int |
iterations
max iterations |
int |
K
number of topics |
int |
sampleLag
sample lag (if -1 only one sample taken) |
private static long |
serialVersionUID
|
int |
thinInterval
sampling lag (?) |
Constructor Summary | |
---|---|
LdaConfiguration()
Read lda configuration from conf file. |
|
LdaConfiguration(int iterations,
int burnIn,
int thinInterval,
int sampleLag,
int K,
double alpha,
double beta)
Configure the gibbs sampler |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public int K
public double alpha
public double beta
public int burnIn
public int iterations
public int sampleLag
public int thinInterval
Constructor Detail |
---|
public LdaConfiguration(int iterations, int burnIn, int thinInterval, int sampleLag, int K, double alpha, double beta)
iterations
- number of total iterationsburnIn
- number of burn-in iterationsthinInterval
- update statistics intervalsampleLag
- sample interval (-1 for just one sample at the end)K
- number of topicsalpha
- symmetric prior parameter on document--topic associationsbeta
- symmetric prior parameter on topic--term associationspublic LdaConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |