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

Latest observations from MapData #3112

Closed
wants to merge 1 commit into from
Closed

Conversation

ltiao
Copy link
Contributor

@ltiao ltiao commented Nov 25, 2024

Differential Revision: D66434621

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

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

ltiao added a commit to ltiao/Ax that referenced this pull request Nov 26, 2024
Summary: Pull Request resolved: facebook#3112

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

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

ltiao pushed a commit to ltiao/Ax that referenced this pull request Nov 26, 2024
Summary: Pull Request resolved: facebook#3112

Differential Revision: D66434621
ltiao pushed a commit to ltiao/Ax that referenced this pull request Nov 27, 2024
Summary: Pull Request resolved: facebook#3112

Differential Revision: D66434621
ltiao pushed a commit to ltiao/Ax that referenced this pull request Nov 27, 2024
Summary: Pull Request resolved: facebook#3112

Differential Revision: D66434621
ltiao added a commit to ltiao/Ax that referenced this pull request Nov 27, 2024
Summary: Pull Request resolved: facebook#3112

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

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

ltiao added a commit to ltiao/Ax that referenced this pull request Nov 28, 2024
Summary: Pull Request resolved: facebook#3112

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

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

ltiao added a commit to ltiao/Ax that referenced this pull request Nov 28, 2024
Summary: Pull Request resolved: facebook#3112

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

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

@codecov-commenter
Copy link

codecov-commenter commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 97.43590% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.98%. Comparing base (9ebd579) to head (0a1c81f).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
ax/core/observation.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3112   +/-   ##
=======================================
  Coverage   95.98%   95.98%           
=======================================
  Files         539      539           
  Lines       52701    52735   +34     
=======================================
+ Hits        50587    50620   +33     
- Misses       2114     2115    +1     

☔ 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 Dec 4, 2024
Summary:

* Provide a new method `latest` for `MapData` to retrieve the n most recently observed values for each (arm, metric) group, determined by the `map_key` values, where higher implies more recent.
* Update `observations_from_data` to optionally utilize `latest` and retain only the most recently observed n values (the new option, if specified alongside the existing subsampling options, will now take precedence).
* Revise the docstring to reflect changes in the pertinent methods, as well as update related methods like `subsample` to ensure uniform and consistent writing.
* Modify the "upcast" df property to leverage `latest`, which is a special case with n=1.

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

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

ltiao pushed a commit to ltiao/Ax that referenced this pull request Dec 4, 2024
Summary: Pull Request resolved: facebook#3112

Differential Revision: D66434621
ltiao added a commit to ltiao/Ax that referenced this pull request Dec 4, 2024
facebook#3112)

Summary:

* Provide a new method `latest` for `MapData` to retrieve the *n* most recently observed values for each (arm, metric) group, determined by the `map_key` values, where higher implies more recent.
* Update `observations_from_data` to optionally utilize `latest` and retain only the most recently observed *n* values (the new option, if specified alongside the existing subsampling options, will now take precedence).
* Modify the "upcast" `MapData.df` property to leverage `latest`, which is a special case with *n=1*.
* Revise the docstring to reflect changes in the pertinent methods, as well as update related methods like `subsample` to ensure uniform and consistent writing.

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

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

ltiao pushed a commit to ltiao/Ax that referenced this pull request Dec 4, 2024
Summary: Pull Request resolved: facebook#3112

Differential Revision: D66434621
ltiao pushed a commit to ltiao/Ax that referenced this pull request Dec 5, 2024
Summary: Pull Request resolved: facebook#3112

Differential Revision: D66434621
ltiao added a commit to ltiao/Ax that referenced this pull request Dec 9, 2024
facebook#3112)

Summary:

* Provide a new method `latest` for `MapData` to retrieve the *n* most recently observed values for each (arm, metric) group, determined by the `map_key` values, where higher implies more recent.
* Update `observations_from_data` to optionally utilize `latest` and retain only the most recently observed *n* values (the new option, if specified alongside the existing subsampling options, will now take precedence).
* Modify the "upcast" `MapData.df` property to leverage `latest`, which is a special case with *n=1*.
* Revise the docstring to reflect changes in the pertinent methods, as well as update related methods like `subsample` to ensure uniform and consistent writing.

Differential Revision: D66434621
ltiao pushed a commit to ltiao/Ax that referenced this pull request Dec 9, 2024
Summary: Pull Request resolved: facebook#3112

Differential Revision: D66434621
ltiao added a commit to ltiao/Ax that referenced this pull request Dec 9, 2024
facebook#3112)

Summary:

* Provide a new method `latest` for `MapData` to retrieve the *n* most recently observed values for each (arm, metric) group, determined by the `map_key` values, where higher implies more recent.
* Update `observations_from_data` to optionally utilize `latest` and retain only the most recently observed *n* values (the new option, if specified alongside the existing subsampling options, will now take precedence).
* Modify the "upcast" `MapData.df` property to leverage `latest`, which is a special case with *n=1*.
* Revise the docstring to reflect changes in the pertinent methods, as well as update related methods like `subsample` to ensure uniform and consistent writing.

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

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

ltiao added a commit to ltiao/Ax that referenced this pull request Dec 12, 2024
facebook#3112)

Summary:
Pull Request resolved: facebook#3112

* Provide a new method `latest` for `MapData` to retrieve the *n* most recently observed values for each (arm, metric) group, determined by the `map_key` values, where higher implies more recent.
* Update `observations_from_data` to optionally utilize `latest` and retain only the most recently observed *n* values (the new option, if specified alongside the existing subsampling options, will now take precedence).
* Modify the "upcast" `MapData.df` property to leverage `latest`, which is a special case with *n=1*.
* Revise the docstring to reflect changes in the pertinent methods, as well as update related methods like `subsample` to ensure uniform and consistent writing.

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

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

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

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

ltiao added a commit to ltiao/Ax that referenced this pull request Dec 12, 2024
facebook#3112)

Summary:
Pull Request resolved: facebook#3112

* Provide a new method `latest` for `MapData` to retrieve the *n* most recently observed values for each (arm, metric) group, determined by the `map_key` values, where higher implies more recent.
* Update `observations_from_data` to optionally utilize `latest` and retain only the most recently observed *n* values (the new option, if specified alongside the existing subsampling options, will now take precedence).
* Modify the "upcast" `MapData.df` property to leverage `latest`, which is a special case with *n=1*.
* Revise the docstring to reflect changes in the pertinent methods, as well as update related methods like `subsample` to ensure uniform and consistent writing.

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

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

ltiao added a commit to ltiao/Ax that referenced this pull request Dec 12, 2024
facebook#3112)

Summary:
Pull Request resolved: facebook#3112

* Provide a new method `latest` for `MapData` to retrieve the *n* most recently observed values for each (arm, metric) group, determined by the `map_key` values, where higher implies more recent.
* Update `observations_from_data` to optionally utilize `latest` and retain only the most recently observed *n* values (the new option, if specified alongside the existing subsampling options, will now take precedence).
* Modify the "upcast" `MapData.df` property to leverage `latest`, which is a special case with *n=1*.
* Revise the docstring to reflect changes in the pertinent methods, as well as update related methods like `subsample` to ensure uniform and consistent writing.

Differential Revision: D66434621
ltiao pushed a commit to ltiao/Ax that referenced this pull request Dec 17, 2024
…a, [Ax][WIP/Not Ready] Putting it all together (subclass TorchModelBridge) (facebook#3112)

Summary:
Pull Request resolved: facebook#3112

* Provide a new method `latest` for `MapData` to retrieve the *n* most recently observed values for each (arm, metric) group, determined by the `map_key` values, where higher implies more recent.
* Update `observations_from_data` to optionally utilize `latest` and retain only the most recently observed *n* values (the new option, if specified alongside the existing subsampling options, will now take precedence).
* Modify the "upcast" `MapData.df` property to leverage `latest`, which is a special case with *n=1*.
* Revise the docstring to reflect changes in the pertinent methods, as well as update related methods like `subsample` to ensure uniform and consistent writing.

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

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

ltiao added a commit to ltiao/Ax that referenced this pull request Feb 13, 2025
facebook#3112)

Summary:
Pull Request resolved: facebook#3112

**Context:** Early-stopping will lead to learning curves that are truncated at varying progressions/lengths, not necessarily just near the highest progressions or in the asymptotic regime. Incorporating one or more of the last seen values for curves that were stopped both early on during the stages of steepest descent and also those that were stopped in the asymptotic regime will likely provide useful/informative datapoints with which to improve the model

This diff:

* Provide a new method `latest` for `MapData` to retrieve the *n* most recently observed values for each (arm, metric) group, determined by the `map_key` values, where higher implies more recent.
* Update `observations_from_data` to optionally utilize `latest` and retain only the most recently observed *n* values (the new option, if specified alongside the existing subsampling options, will now take precedence).
* Modify the "upcast" `MapData.df` property to leverage `latest`, which is a special case with *n=1*.
* Revise the docstring to reflect changes in the pertinent methods, as well as update related methods like `subsample` to ensure uniform and consistent writing.

Reviewed By: esantorella

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

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

ltiao added a commit to ltiao/Ax that referenced this pull request Feb 14, 2025
facebook#3112)

Summary:
Pull Request resolved: facebook#3112

**Context:** Early-stopping will lead to learning curves that are truncated at varying progressions/lengths, not necessarily just near the highest progressions or in the asymptotic regime. Incorporating one or more of the last seen values for curves that were stopped both early on during the stages of steepest descent and also those that were stopped in the asymptotic regime will likely provide useful/informative datapoints with which to improve the model

This diff:

* Provide a new method `latest` for `MapData` to retrieve the *n* most recently observed values for each (arm, metric) group, determined by the `map_key` values, where higher implies more recent.
* Update `observations_from_data` to optionally utilize `latest` and retain only the most recently observed *n* values (the new option, if specified alongside the existing subsampling options, will now take precedence).
* Modify the "upcast" `MapData.df` property to leverage `latest`, which is a special case with *n=1*.
* Revise the docstring to reflect changes in the pertinent methods, as well as update related methods like `subsample` to ensure uniform and consistent writing.

Reviewed By: esantorella

Differential Revision: D66434621
@ltiao ltiao force-pushed the export-D66434621 branch 2 times, most recently from a20dca3 to a529b8d Compare February 19, 2025 00:34
ltiao added a commit to ltiao/Ax that referenced this pull request Feb 19, 2025
facebook#3112)

Summary:

**Context:** Early-stopping will lead to learning curves that are truncated at varying progressions/lengths, not necessarily just near the highest progressions or in the asymptotic regime. Incorporating one or more of the last seen values for curves that were stopped both early on during the stages of steepest descent and also those that were stopped in the asymptotic regime will likely provide useful/informative datapoints with which to improve the model

This diff:

* Provide a new method `latest` for `MapData` to retrieve the *n* most recently observed values for each (arm, metric) group, determined by the `map_key` values, where higher implies more recent.
* Update `observations_from_data` to optionally utilize `latest` and retain only the most recently observed *n* values (the new option, if specified alongside the existing subsampling options, will now take precedence).
* Modify the "upcast" `MapData.df` property to leverage `latest`, which is a special case with *n=1*.
* Revise the docstring to reflect changes in the pertinent methods, as well as update related methods like `subsample` to ensure uniform and consistent writing.

Reviewed By: esantorella

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

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

facebook#3112)

Summary:

**Context:** Early-stopping will lead to learning curves that are truncated at varying progressions/lengths, not necessarily just near the highest progressions or in the asymptotic regime. Incorporating one or more of the last seen values for curves that were stopped both early on during the stages of steepest descent and also those that were stopped in the asymptotic regime will likely provide useful/informative datapoints with which to improve the model

This diff:

* Provide a new method `latest` for `MapData` to retrieve the *n* most recently observed values for each (arm, metric) group, determined by the `map_key` values, where higher implies more recent.
* Update `observations_from_data` to optionally utilize `latest` and retain only the most recently observed *n* values (the new option, if specified alongside the existing subsampling options, will now take precedence).
* Modify the "upcast" `MapData.df` property to leverage `latest`, which is a special case with *n=1*.
* Revise the docstring to reflect changes in the pertinent methods, as well as update related methods like `subsample` to ensure uniform and consistent writing.

Reviewed By: esantorella

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 2a0d7a5.

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 Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants