Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Topic modelling - Reorder methods by relevance #1020

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

PrimozGodec
Copy link
Collaborator

Issue

LDA is a more relevant method than LSI, so it should be the default

Description of changes

Changing the ordering of methods and fixing settings for backwards

Includes
  • Code changes
  • Tests
  • Documentation

@@ -266,6 +267,8 @@ def on_done(self, corpus):
if self.model.name == "Latent Dirichlet Allocation":
bound = self.model.model.log_perplexity(infer_ngrams_corpus(corpus))
self.perplexity = "{:.5f}".format(np.exp2(-bound))
else:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that perplexity didn't reset to na after the method change

@codecov-commenter
Copy link

codecov-commenter commented Nov 3, 2023

Codecov Report

Merging #1020 (12e7a24) into master (3ebeaea) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1020      +/-   ##
==========================================
+ Coverage   82.19%   82.21%   +0.01%     
==========================================
  Files          93       93              
  Lines       12286    12294       +8     
  Branches     1664     1665       +1     
==========================================
+ Hits        10099    10107       +8     
  Misses       1874     1874              
  Partials      313      313              

@ajdapretnar ajdapretnar merged commit 64c4e25 into biolab:master Nov 10, 2023
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants