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

Simplified and optimized logic for calculating per-metric subsampling rate for MapData #3106

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ltiao
Copy link
Contributor

@ltiao ltiao commented Nov 22, 2024

Differential Revision: D66366076

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Nov 22, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66366076

ltiao added a commit to ltiao/Ax that referenced this pull request Nov 22, 2024
… rate for MapData (facebook#3106)

Summary:

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Differential Revision: D66366076
ltiao added a commit to ltiao/Ax that referenced this pull request Nov 22, 2024
… rate for MapData (facebook#3106)

Summary:

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Differential Revision: D66366076
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66366076

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66366076

ltiao added a commit to ltiao/Ax that referenced this pull request Nov 22, 2024
… rate for MapData (facebook#3106)

Summary:

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Differential Revision: D66366076
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66366076

ltiao added a commit to ltiao/Ax that referenced this pull request Nov 23, 2024
… rate for MapData (facebook#3106)

Summary:

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Differential Revision: D66366076
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66366076

@codecov-commenter
Copy link

codecov-commenter commented Nov 23, 2024

Codecov Report

Attention: Patch coverage is 92.68293% with 3 lines in your changes missing coverage. Please review.

Project coverage is 95.49%. Comparing base (a44cb2f) to head (7f4519c).

Files with missing lines Patch % Lines
ax/core/observation.py 87.50% 2 Missing ⚠️
ax/core/map_data.py 95.65% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3106   +/-   ##
=======================================
  Coverage   95.49%   95.49%           
=======================================
  Files         504      504           
  Lines       50404    50398    -6     
=======================================
- Hits        48131    48128    -3     
+ Misses       2273     2270    -3     

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

ltiao added a commit to ltiao/Ax that referenced this pull request Nov 25, 2024
… rate for MapData (facebook#3106)

Summary:

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Reviewed By: Balandat

Differential Revision: D66366076
ltiao added a commit to ltiao/Ax that referenced this pull request Nov 26, 2024
… rate for MapData (facebook#3106)

Summary:

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Reviewed By: Balandat

Differential Revision: D66366076
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66366076

ltiao added a commit to ltiao/Ax that referenced this pull request Nov 26, 2024
… rate for MapData (facebook#3106)

Summary:

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Reviewed By: Balandat

Differential Revision: D66366076
ltiao pushed a commit to ltiao/Ax that referenced this pull request Nov 26, 2024
… rate for MapData (facebook#3106)

Summary:
Pull Request resolved: facebook#3106

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Differential Revision: D66366076
ltiao pushed a commit to ltiao/Ax that referenced this pull request Nov 27, 2024
… rate for MapData (facebook#3106)

Summary:
Pull Request resolved: facebook#3106

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Differential Revision: D66366076
ltiao pushed a commit to ltiao/Ax that referenced this pull request Nov 27, 2024
… rate for MapData (facebook#3106)

Summary:
Pull Request resolved: facebook#3106

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Differential Revision: D66366076
ltiao added a commit to ltiao/Ax that referenced this pull request Nov 27, 2024
… rate for MapData (facebook#3106)

Summary:

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Reviewed By: Balandat

Differential Revision: D66366076
ltiao added a commit to ltiao/Ax that referenced this pull request Nov 28, 2024
… rate for MapData (facebook#3106)

Summary:

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Reviewed By: Balandat

Differential Revision: D66366076
…ta to Observations (facebook#3001)

Summary:

This updates `observations_from_data` to include progression info as observation feature metadata by default. More specifically:

- Updates `observations_from_data` to subsume behavior of `observations_from_map_data` as special case.
- Updates calls to `observations_from_map_data` to instead call `observations_from_data`
- Removes `observations_from_map_data` which is used exclusively by `MapTorchModelBridge`

Reviewed By: saitcakmak

Differential Revision: D65255312
… rate for MapData (facebook#3106)

Summary:

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Reviewed By: Balandat

Differential Revision: D66366076
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66366076

ltiao added a commit to ltiao/Ax that referenced this pull request Nov 28, 2024
… rate for MapData (facebook#3106)

Summary:

This refines the logic for calculating per-metric subsampling rates in `MapData.subsample` and incorporates a (probably premature) performance optimization, achieved by utilizing binary search on a sorted list instead of linear search.

Reviewed By: Balandat

Differential Revision: D66366076
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. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants