|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knowceans.dirichlet.lda.LdaMarkovState
org.knowceans.dirichlet.atm.AtmMarkovState
public class AtmMarkovState
AtmMarkovState represents the state of the gibbs sampler of the lda process used for estimating unknown documents (word vectors).
| Field Summary | |
|---|---|
int |
A
total number of authors |
int[][] |
ad
document authors [M][] |
private static long |
serialVersionUID
|
int[][] |
x
word authors |
| Fields inherited from class org.knowceans.dirichlet.lda.LdaMarkovState |
|---|
nd, ndsum, nw, nwsum, V, w, z |
| Constructor Summary | |
|---|---|
AtmMarkovState()
Initialise markov state for loading or setting by parameters (subclasses only). |
|
AtmMarkovState(AtmMarkovState state)
Copy constructor that copies all internal fields from state to this. |
|
AtmMarkovState(int[][] w,
int V,
int[][] ad,
int A,
int[][] z,
int K,
int[][] x)
Initialise the object from the data given. |
|
AtmMarkovState(java.lang.String atmBase)
Set up the markov chain from a file. |
|
| Method Summary | |
|---|---|
void |
copyTo(AtmMarkovState cps)
Copy the information contained in this to the fields of the argument object. |
protected void |
initNd(int M,
int K,
java.util.Random rand)
|
void |
load(java.lang.String filename)
Load state arrays from file. |
void |
recalculate(int[][] z,
int[][] x)
Recalculates the topic statistics from the word-topic associations. |
void |
save(java.lang.String filename)
Save (optionally compressed) file. |
| Methods inherited from class org.knowceans.dirichlet.lda.LdaMarkovState |
|---|
copyTo, init, initNw, recalculate |
| 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[][] ad
public int[][] x
public int A
| Constructor Detail |
|---|
public AtmMarkovState()
public AtmMarkovState(java.lang.String atmBase)
atmBase - public AtmMarkovState(AtmMarkovState state)
state -
public AtmMarkovState(int[][] w,
int V,
int[][] ad,
int A,
int[][] z,
int K,
int[][] x)
w - document vectorsV - vocabulary sizead - document authorsA - author community sizez - document word topicsK - topic countx - document word authors| Method Detail |
|---|
public void recalculate(int[][] z,
int[][] x)
z - x - public void copyTo(AtmMarkovState cps)
cps - public void load(java.lang.String filename)
load in class LdaMarkovStatefile - public void save(java.lang.String filename)
save in class LdaMarkovStatefile -
protected void initNd(int M,
int K,
java.util.Random rand)
initNd in class LdaMarkovState
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||