Skip to content

Commit

Permalink
Merge pull request #200 from jonaschn/docs/dirichlets
Browse files Browse the repository at this point in the history
Add reference to Hanna Wallach's Ph.D. thesis
  • Loading branch information
mimno authored May 22, 2021
2 parents 4b232a8 + 0072ad7 commit d9fd566
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cc/mallet/types/Dirichlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ public static void testSymmetricConcentration(int numDimensions, int numObservat

/**
* Learn Dirichlet parameters using frequency histograms
* described by Hanna Wallach in "Structured Topic Models for Language" (2008), section 2.4
* Method 1: Using the Digamma Recurrence Relation (pp. 27-28)
*
* @param parameters A reference to the current values of the parameters, which will be updated in place
* @param observations An array of count histograms. <code>observations[10][3]</code> could be the number of documents that contain exactly 3 tokens of word type 10.
Expand All @@ -571,6 +573,8 @@ public static double learnParameters(double[] parameters,

/**
* Learn Dirichlet parameters using frequency histograms
* described by Hanna Wallach in "Structured Topic Models for Language", section 2.4
* Method 1: Using the Digamma Recurrence Relation (pp. 27-28) and gamma hyperpriors (section 2.5, pp. 37-39)
*
* @param parameters A reference to the current values of the parameters, which will be updated in place
* @param observations An array of count histograms. <code>observations[10][3]</code> could be the number of documents that contain exactly 3 tokens of word type 10.
Expand Down

0 comments on commit d9fd566

Please sign in to comment.