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

Performance & runtime improvements to info-theoretic acquisition functions (0/N) - Restructuring of sampling methods #2753

Closed
wants to merge 4 commits into from

Conversation

hvarfner
Copy link
Contributor

Reshuffling of sampling methods that are not directly related to acquisition function optimization (i.e., don't take it as an argument) based on this discussion. To remove code duplication specifically related to optimization of info-theoretic acquisition functions, this seemed like sensible moves!

Test Plan

Moved unittests and added new one for boltzmann_sample, which was used throughout and is once again used in subsequent PRs.

Related PRs

First of a series, like this one.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 21, 2025
@hvarfner hvarfner force-pushed the sample_restructure branch 2 times, most recently from 4dbe092 to 14eddf6 Compare February 21, 2025 15:19
Copy link

codecov bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.99%. Comparing base (0be800e) to head (6995223).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2753   +/-   ##
=======================================
  Coverage   99.99%   99.99%           
=======================================
  Files         203      203           
  Lines       18692    18685    -7     
=======================================
- Hits        18691    18684    -7     
  Misses          1        1           

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

replacement: bool = False,
temp_decrease: float = 0.5,
):
"""
Copy link
Member

Choose a reason for hiding this comment

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

Thanks so much for the clear docstring!

@facebook-github-bot
Copy link
Contributor

@saitcakmak has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@saitcakmak has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@saitcakmak has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@saitcakmak merged this pull request in 78c04e2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants