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

Pass in n_hidden to Encoder in AmortizedLDA #2229

Merged
merged 7 commits into from Aug 14, 2023
Merged

Conversation

canergen
Copy link
Contributor

@canergen canergen commented Aug 10, 2023

n_hidden was without effect in AmortizedLDA.

  • X Closes #xxxx (Replace xxxx with the GitHub issue number)
  • X Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest docs/release_notes/index.md file if fixing a bug or adding a new feature.
  • [X ] If the changes are patches for a version, I have added the on-merge: backport to x.x.x label.

Summary by CodeRabbit

Release Notes:

  • New Feature: The n_hidden parameter is now effective in the AmortizedLDA model. This enhancement allows users to specify the number of hidden layers in the model, providing more flexibility and control over the model's complexity.

🎉 Here's to the code that's ever evolving,
With each new feature, it's complexity solving.
Now with n_hidden in our stride,
In AmortizedLDA, it takes pride.
More control, more power, we're revolving! 🚀

canergen and others added 3 commits August 9, 2023 21:45
n_hidden was without effect in AmortizedLDA.
Added to release_notes.
@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01% ⚠️

Comparison is base (0db7d69) 89.10% compared to head (23ec753) 89.09%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2229      +/-   ##
==========================================
- Coverage   89.10%   89.09%   -0.01%     
==========================================
  Files         145      145              
  Lines       11810    11810              
==========================================
- Hits        10523    10522       -1     
- Misses       1287     1288       +1     
Files Changed Coverage Δ
scvi/module/_amortizedlda.py 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coderabbitai
Copy link

coderabbitai bot commented Aug 14, 2023

Image description CodeRabbit

Walkthrough: This update introduces a new feature in the AmortizedLDA method where the n_hidden parameter is now effective. The change involves passing this argument to the Encoder class during instantiation, enhancing the functionality of the model.

Changes:

File Summary
docs/release_notes/index.md Release notes updated to reflect the new feature where the n_hidden parameter is now effective in AmortizedLDA.
scvi/module/_amortizedlda.py The n_hidden parameter is added as an argument to the Encoder class constructor and passed during instantiation in the AmortizedLDA model.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Image description CodeRabbit

Commits Files that changed from the base of the PR and between cc44534 and de91316 commits.
Files selected for processing (2)
  • docs/release_notes/index.md (1 hunks)
  • scvi/module/_amortizedlda.py (1 hunks)
Files skipped from review due to trivial changes (2)
  • docs/release_notes/index.md
  • scvi/module/_amortizedlda.py
Review comments generated (0)
  • Actionable : 0
  • LGTM (Skipped): 0
  • Noise Suppression (Skipped): 0

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Tag the bot with @coderabbitai in any review comment to ask it questions. The bot will not respond unless explicitly tagged.
  • A review comment is a comment on a diff or a file and not a comment on the PR itself.
  • You can use the mouse to select multiple lines of code to provide exact context to the bot.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Image description CodeRabbit

Commits Files that changed from the base of the PR and between de91316 and 5726c2b commits.
Files selected for processing (1)
  • docs/release_notes/index.md (1 hunks)
Files skipped from review due to trivial changes (1)
  • docs/release_notes/index.md
Review comments generated (0)
  • Actionable : 0
  • LGTM (Skipped): 0
  • Noise Suppression (Skipped): 0

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Tag the bot with @coderabbitai in any review comment to ask it questions. The bot will not respond unless explicitly tagged.
  • A review comment is a comment on a diff or a file and not a comment on the PR itself.
  • You can use the mouse to select multiple lines of code to provide exact context to the bot.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

@martinkim0 martinkim0 changed the title Update _amortizedlda.py Pass in n_hidden to Encoder in AmortizedLDA Aug 14, 2023
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Image description CodeRabbit

Commits Files that changed from the base of the PR and between 5726c2b and 23ec753 commits.
Files selected for processing (1)
  • docs/release_notes/index.md (2 hunks)
Review comments generated (0)
  • Actionable : 0
  • LGTM (Skipped): 2
  • Noise Suppression (Skipped): 0

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Tag the bot with @coderabbitai in any review comment to ask it questions. The bot will not respond unless explicitly tagged.
  • A review comment is a comment on a diff or a file and not a comment on the PR itself.
  • You can use the mouse to select multiple lines of code to provide exact context to the bot.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

@martinkim0 martinkim0 merged commit b8d8009 into main Aug 14, 2023
7 checks passed
@martinkim0 martinkim0 deleted the fix_amortizedlda branch August 14, 2023 21:40
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.

None yet

2 participants