Skip to content

Simplify task value remapping API#4860

Closed
hvarfner wants to merge 1 commit into
facebook:mainfrom
hvarfner:export-D90998243
Closed

Simplify task value remapping API#4860
hvarfner wants to merge 1 commit into
facebook:mainfrom
hvarfner:export-D90998243

Conversation

@hvarfner
Copy link
Copy Markdown

@hvarfner hvarfner commented Feb 5, 2026

Summary:
X-link: meta-pytorch/botorch#3146

Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in #3085.

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed because the previous behavior—silently mapping unknown tasks to an arbitrary fallback—was confusing and error-prone; instead, unrecognized tasks now map to NaN, providing an explicit error sentinel with a clear warning message.

Differential Revision: D90998243

@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Feb 5, 2026

@hvarfner has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90998243.

@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 5, 2026
hvarfner pushed a commit to hvarfner/botorch that referenced this pull request Feb 5, 2026
Summary:
X-link: facebook/Ax#4860


Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in meta-pytorch#3085. 

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed because the previous behavior—silently mapping unknown tasks to an arbitrary fallback—was confusing and error-prone; instead, unrecognized tasks now map to NaN, providing an explicit error sentinel with a clear warning message.

Differential Revision: D90998243
hvarfner pushed a commit to hvarfner/botorch that referenced this pull request Feb 9, 2026
Summary:

X-link: facebook/Ax#4860


Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in meta-pytorch#3085. 

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed because the previous behavior—silently mapping unknown tasks to an arbitrary fallback—was confusing and error-prone; instead, unrecognized tasks now map to NaN, providing an explicit error sentinel with a clear warning message.

Differential Revision: D90998243
hvarfner pushed a commit to hvarfner/Ax that referenced this pull request Feb 9, 2026
Summary:
X-link: meta-pytorch/botorch#3163


X-link: meta-pytorch/botorch#3146

Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in facebook#3085. 

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed because the previous behavior—silently mapping unknown tasks to an arbitrary fallback—was confusing and error-prone; instead, unrecognized tasks now map to NaN, providing an explicit error sentinel with a clear warning message.

Differential Revision: D90998243
hvarfner pushed a commit to hvarfner/botorch that referenced this pull request Feb 9, 2026
Summary:

X-link: facebook/Ax#4860


Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in meta-pytorch#3085. 

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed because the previous behavior—silently mapping unknown tasks to an arbitrary fallback—was confusing and error-prone; instead, unrecognized tasks now map to NaN, providing an explicit error sentinel with a clear warning message.

Differential Revision: D90998243
hvarfner pushed a commit to hvarfner/botorch that referenced this pull request Feb 9, 2026
Summary:
Pull Request resolved: meta-pytorch#3163

X-link: facebook/Ax#4860

Pull Request resolved: meta-pytorch#3146

Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in meta-pytorch#3085.

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed because the previous behavior—silently mapping unknown tasks to an arbitrary fallback—was confusing and error-prone; instead, unrecognized tasks now map to NaN, providing an explicit error sentinel with a clear warning message.

Differential Revision: D90998243
hvarfner pushed a commit to hvarfner/Ax that referenced this pull request Feb 9, 2026
Summary:
X-link: meta-pytorch/botorch#3163

Pull Request resolved: facebook#4860

X-link: meta-pytorch/botorch#3146

Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in facebook#3085.

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed because the previous behavior—silently mapping unknown tasks to an arbitrary fallback—was confusing and error-prone; instead, unrecognized tasks now map to NaN, providing an explicit error sentinel with a clear warning message.

Differential Revision: D90998243
hvarfner pushed a commit to hvarfner/botorch that referenced this pull request Feb 9, 2026
Summary:
Pull Request resolved: meta-pytorch#3163

X-link: facebook/Ax#4860

Pull Request resolved: meta-pytorch#3146

Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in meta-pytorch#3085.

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed because the previous behavior—silently mapping unknown tasks to an arbitrary fallback—was confusing and error-prone; instead, unrecognized tasks now map to NaN, providing an explicit error sentinel with a clear warning message.

Differential Revision: D90998243
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.78%. Comparing base (ef9c9ee) to head (4451f17).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4860   +/-   ##
=======================================
  Coverage   96.78%   96.78%           
=======================================
  Files         593      593           
  Lines       62291    62284    -7     
=======================================
- Hits        60288    60282    -6     
+ Misses       2003     2002    -1     

☔ 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.

hvarfner pushed a commit to hvarfner/botorch that referenced this pull request Feb 9, 2026
Summary:

X-link: facebook/Ax#4860


Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in meta-pytorch#3085. 

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed because the previous behavior—silently mapping unknown tasks to an arbitrary fallback—was confusing and error-prone; instead, unrecognized tasks now map to NaN, providing an explicit error sentinel with a clear warning message.

Differential Revision: D90998243
hvarfner pushed a commit to hvarfner/Ax that referenced this pull request Feb 9, 2026
Summary:
X-link: meta-pytorch/botorch#3163


X-link: meta-pytorch/botorch#3146

Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in facebook#3085. 

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed because the previous behavior—silently mapping unknown tasks to an arbitrary fallback—was confusing and error-prone; instead, unrecognized tasks now map to NaN, providing an explicit error sentinel with a clear warning message.

Differential Revision: D90998243
hvarfner pushed a commit to hvarfner/botorch that referenced this pull request Feb 12, 2026
Summary:

X-link: facebook/Ax#4860


Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in meta-pytorch#3085. 

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed because the previous behavior—silently mapping unknown tasks to an arbitrary fallback—was confusing and error-prone; instead, unrecognized tasks now map to NaN, providing an explicit error sentinel with a clear warning message.

Differential Revision: D90998243
hvarfner pushed a commit to hvarfner/botorch that referenced this pull request Feb 12, 2026
Summary:

X-link: facebook/Ax#4860


Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in meta-pytorch#3085. 

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed because the previous behavior—silently mapping unknown tasks to an arbitrary fallback—was confusing and error-prone; instead, unrecognized tasks now map to NaN, providing an explicit error sentinel with a clear warning message.

Differential Revision: D90998243
hvarfner pushed a commit to hvarfner/botorch that referenced this pull request Feb 12, 2026
Summary:

X-link: facebook/Ax#4860


Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in meta-pytorch#3085. 

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed because the previous behavior—silently mapping unknown tasks to an arbitrary fallback—was confusing and error-prone; instead, unrecognized tasks now map to NaN, providing an explicit error sentinel with a clear warning message.

Differential Revision: D90998243
Summary:
X-link: meta-pytorch/botorch#3163

Pull Request resolved: facebook#4860

X-link: meta-pytorch/botorch#3146

Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in facebook#3085.

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed.

Differential Revision: D90998243
hvarfner pushed a commit to hvarfner/botorch that referenced this pull request Feb 13, 2026
Summary:

X-link: facebook/Ax#4860


Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in meta-pytorch#3085. 

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed.

Reviewed By: sdaulton

Differential Revision: D90998243
meta-codesync Bot pushed a commit to meta-pytorch/botorch that referenced this pull request Feb 13, 2026
Summary:
Pull Request resolved: #3163

X-link: facebook/Ax#4860

Pull Request resolved: #3146

Simplifies the get_task_value_remapping() API from 4 parameters to 2, addressing confusion reported in #3085.

The observed_task_values parameter is removed because the parent diff (D90769576) now makes MultiTaskGP track observed/unobserved tasks internally via _observed_task_indices and _unobserved_task_indices. The default_task_value parameter is removed.

Reviewed By: sdaulton

Differential Revision: D90998243

fbshipit-source-id: 04e1b56d082107ccce7594dea19a92ae55da3353
@meta-codesync meta-codesync Bot closed this in d8a75c0 Feb 13, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Feb 13, 2026

This pull request has been merged in d8a75c0.

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 meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants