-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LDA hyperparameter fix: eta dimensionality and optimization (#1024)
* Copied ldamodel into ldamodel2. Going to make changes to ldamodel2 and compare to the original. * Fixed initialization of eta, and optimization of eta. * Changed the name of both LDA versions, so that it is possible to see what changes I have made in the PR. * Added a notebook with tests. * Added check of eta shape. Added check that eta is not 'asymmetric', raising ValueError if it is. Updated test notebook. * Updated lda unit tests. Expected dimensions of eta are now '(num_terms,)'. Removed tests of asymmetric eta, and where eta has shape '(num_topics, num_terms)'. * Just removed a print statement. * Not logging eta, as it can be quite huge. Updates w.r.t. requested changes on PR. * Re-introduced K x V asymmetric priors. Updated eta docstring. * Reverted positivity of prior check to the way it was before. * Added a assertionRaise for asymmetric option of eta. * Removed an incorrect unit test. Added unit tests for K x V eta. * Fixed indentation. * Added an assertRaises where eta is too long. * Removed temporary test notebook and old version of lda. * Removed import of old version of lda. * Removed unnecessary comments. * Updated CHANGELOG.md
- Loading branch information
1 parent
0b2f6b8
commit 54871ba
Showing
3 changed files
with
56 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters