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

[Ax] DataLoaderConfig - Only load last observation of map data by default #3403

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SebastianAment
Copy link
Contributor

Summary: This commit ensures that the Adapter only loads a single observation by default, even for map metrics. This makes sure that any method (not-necessarily map-data aware) can be applied by default.

Differential Revision: D69992533

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Feb 21, 2025
SebastianAment added a commit to SebastianAment/Ax that referenced this pull request Feb 24, 2025
Summary:

This commit ensures that the `Adapter` only loads a single observation by default, even for map metrics. This makes sure that any method (not-necessarily map-data aware) can be applied by default.

Reviewed By: saitcakmak

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

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

@codecov-commenter
Copy link

codecov-commenter commented Feb 24, 2025

Codecov Report

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

Project coverage is 96.00%. Comparing base (bae241c) to head (fad0301).

Files with missing lines Patch % Lines
ax/modelbridge/base.py 96.42% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3403   +/-   ##
=======================================
  Coverage   95.99%   96.00%           
=======================================
  Files         539      539           
  Lines       52874    52903   +29     
=======================================
+ Hits        50757    50787   +30     
+ Misses       2117     2116    -1     

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

@facebook-github-bot
Copy link
Contributor

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

SebastianAment added a commit to SebastianAment/Ax that referenced this pull request Feb 24, 2025
Summary:
Pull Request resolved: facebook#3403

This commit ensures that the `Adapter` only loads a single observation by default, even for map metrics. This makes sure that any method (not-necessarily map-data aware) can be applied by default.

Reviewed By: saitcakmak

Differential Revision: D69992533
@SebastianAment SebastianAment force-pushed the export-D69992533 branch 2 times, most recently from 96ef4e4 to dc70d8d Compare February 28, 2025 17:57
SebastianAment added a commit to SebastianAment/Ax that referenced this pull request Feb 28, 2025
facebook#3403)

Summary:

The original purpose of this commit was to ensure that the `Adapter` only loads a single observation by default, even for running and completed map metrics. This makes sure that any method (not-necessarily map-data aware) can be applied by default.

To this end, we need control of the `latest_rows_per_group` of `observations_from_data`. 

In order to avoid increasing the number of arguments to the adapter, we package the new argument and other parameters controlling what data the model is fit to in a new `DataLoaderConfig` dataclass.

Reviewed By: saitcakmak

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

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

SebastianAment added a commit to SebastianAment/Ax that referenced this pull request Feb 28, 2025
facebook#3403)

Summary:

The original purpose of this commit was to ensure that the `Adapter` only loads a single observation by default, even for running and completed map metrics. This makes sure that any method (not-necessarily map-data aware) can be applied by default.

To this end, we need control of the `latest_rows_per_group` of `observations_from_data`. 

In order to avoid increasing the number of arguments to the adapter, we package the new argument and other parameters controlling what data the model is fit to in a new `DataLoaderConfig` dataclass.

Reviewed By: saitcakmak

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

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

@SebastianAment SebastianAment changed the title Only load last observation of map data by default [Ax] DataLoaderConfig - Only load last observation of map data by default Feb 28, 2025
SebastianAment added a commit to SebastianAment/Ax that referenced this pull request Feb 28, 2025
facebook#3403)

Summary:

The original purpose of this commit was to ensure that the `Adapter` only loads a single observation by default, even for running and completed map metrics. This makes sure that any method (not-necessarily map-data aware) can be applied by default.

To this end, we need control of the `latest_rows_per_group` of `observations_from_data`. 

In order to avoid increasing the number of arguments to the adapter, we package the new argument and other parameters controlling what data the model is fit to in a new `DataLoaderConfig` dataclass.

Reviewed By: saitcakmak

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

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

facebook#3403)

Summary:

The original purpose of this commit was to ensure that the `Adapter` only loads a single observation by default, even for running and completed map metrics. This makes sure that any method (not-necessarily map-data aware) can be applied by default.

To this end, we need control of the `latest_rows_per_group` of `observations_from_data`. 

In order to avoid increasing the number of arguments to the adapter, we package the new argument and other parameters controlling what data the model is fit to in a new `DataLoaderConfig` dataclass.

Reviewed By: saitcakmak

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

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

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