|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.knowceans.topics.cgen.LdaGibbsSerB
public class LdaGibbsSerB
LDA Gibbs sampler: (m,k | alpha), (k,t | beta)
Serial fast version with (2, 2, inf) norms, refactored from SerA
Constructor Summary | |
---|---|
LdaGibbsSerB(int[][] w,
int[][] wq,
int K,
int V,
double alpha,
double beta,
java.util.Random rand)
parametrise gibbs sampler |
Method Summary | |
---|---|
void |
init()
initialise Markov chain |
void |
initq()
initialise Markov chain for querying |
static void |
main(java.lang.String[] args)
test driver for mixture network Gibbs sampler |
double |
ppx()
|
void |
run(int niter)
run Gibbs sampler |
void |
runq(int niter)
query Gibbs sampler |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LdaGibbsSerB(int[][] w, int[][] wq, int K, int V, double alpha, double beta, java.util.Random rand)
w
- word tokenswq
- word tokens (testing)K
- number of topicsV
- number of termsalpha
- node A hyperparambeta
- node B hyperparamrand
- random number generatorMethod Detail |
---|
public static void main(java.lang.String[] args)
args
- public void init()
init
in interface org.knowceans.topics.simple.ISimpleGibbs
public void initq()
initq
in interface org.knowceans.topics.simple.ISimpleQueryGibbs
public void run(int niter)
run
in interface org.knowceans.topics.simple.ISimpleGibbs
niter
- number of Gibbs iterationspublic void runq(int niter)
runq
in interface org.knowceans.topics.simple.ISimpleQueryGibbs
niter
- number of Gibbs iterationspublic double ppx()
ppx
in interface org.knowceans.topics.simple.ISimplePpx
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |