org.knowceans.topics.cgen
Class LdaGibbsSampler1049
java.lang.Object
org.knowceans.topics.cgen.LdaGibbsSampler1049
public class LdaGibbsSampler1049
- extends java.lang.Object
Generated Gibbs sampler for the LDA model. Mixture network specification:
mixnet: m[m][n] >> (theta[m] | alpha) >> z[m][n] >> (phi[z] | beta) >> w[m][n]
elements:
m[m][n]:
document {ROOT|E1SINGLE}
parents: (root)
children: doc-topic
range: M
(theta[m] | alpha):
doc-topic {SEQUENCE|C1ROOT}
parents: document
children: topic
components: domain: M, range: K, index: m, selector: m
hyperparams: dimension 0, domain: none, selector: null
z[m][n]:
topic {HIDDEN|E1SINGLE}
parents: doc-topic
children: topic-word
range: K
(phi[z] | beta):
topic-word {TOPIC|C1ASINGLE}
parents: topic
children: word
components: domain: K, range: V, index: z, selector: z
hyperparams: dimension 0, domain: none, selector: null
w[m][n]:
word {VISIBLE|E1SINGLE}
parents: topic-word
children: (leaf)
range: V
Field Summary |
(package private) double |
alpha
|
(package private) double |
beta
|
(package private) int |
iter
|
(package private) int |
K
|
(package private) int |
M
|
(package private) int |
Mq
|
(package private) int |
niter
|
(package private) int[][] |
nmz
|
(package private) int[][] |
nmzq
|
(package private) int[][] |
nzw
|
(package private) int[] |
nzwsum
|
(package private) double[][] |
phi
|
(package private) double[] |
pp
|
(package private) java.util.Random |
rand
|
(package private) int |
V
|
(package private) int[][] |
w
|
(package private) int |
W
|
(package private) int[][] |
wq
|
(package private) int |
Wq
|
(package private) int[][] |
z
|
(package private) int[][] |
zq
|
Constructor Summary |
LdaGibbsSampler1049(int[][] w,
int[][] wq,
int K,
int V,
double alpha,
double beta,
java.util.Random rand)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
rand
java.util.Random rand
iter
int iter
niter
int niter
M
int M
Mq
int Mq
nmz
int[][] nmz
nmzq
int[][] nmzq
alpha
double alpha
z
int[][] z
zq
int[][] zq
K
int K
nzw
int[][] nzw
nzwsum
int[] nzwsum
beta
double beta
phi
double[][] phi
w
int[][] w
wq
int[][] wq
V
int V
W
int W
Wq
int Wq
pp
double[] pp
LdaGibbsSampler1049
public LdaGibbsSampler1049(int[][] w,
int[][] wq,
int K,
int V,
double alpha,
double beta,
java.util.Random rand)
main
public static void main(java.lang.String[] args)
init
public void init()
initq
public void initq()
run
public void run(int niter)
runq
public void runq(int niterq)
estAlpha
public void estAlpha()
ppx
public double ppx()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object