Skip to content

Conversation

@saitcakmak
Copy link
Contributor

Summary: It is possible to fit a TorchAdapter with only one data point but it is not possible to run cross validation with it. This can lead to errors since we rely on CV statistics in BestModelSelector, which is used in BOTL. This diff gracefully handles such errors rather than erroring out in the experiment.

Differential Revision: D79915007

@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Aug 8, 2025
@facebook-github-bot
Copy link
Contributor

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

saitcakmak added a commit to saitcakmak/Ax that referenced this pull request Aug 8, 2025
Summary:

It is possible to fit a TorchAdapter with only one data point but it is not possible to run cross validation with it. This can lead to errors since we rely on CV statistics in `BestModelSelector`, which is used in BOTL. This diff gracefully handles such errors rather than erroring out in the experiment.

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

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

saitcakmak added a commit to saitcakmak/Ax that referenced this pull request Aug 8, 2025
Summary:

It is possible to fit a TorchAdapter with only one data point but it is not possible to run cross validation with it. This can lead to errors since we rely on CV statistics in `BestModelSelector`, which is used in BOTL. This diff gracefully handles such errors rather than erroring out in the experiment.

Reviewed By: esantorella

Differential Revision: D79915007
Summary:
Pull Request resolved: facebook#4123

It is possible to fit a TorchAdapter with only one data point but it is not possible to run cross validation with it. This can lead to errors since we rely on CV statistics in `BestModelSelector`, which is used in BOTL. This diff gracefully handles such errors rather than erroring out in the experiment.

Reviewed By: esantorella

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

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

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.08%. Comparing base (1a332db) to head (e399172).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4123   +/-   ##
=======================================
  Coverage   96.08%   96.08%           
=======================================
  Files         566      566           
  Lines       57205    57219   +14     
=======================================
+ Hits        54965    54979   +14     
  Misses       2240     2240           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 1964c45.

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