Skip to content

Simplify task value remapping API#4860

Open
hvarfner wants to merge 1 commit intofacebook:mainfrom
hvarfner:export-D90998243
Open

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

Conversation

@hvarfner
Copy link

@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

Summary:
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
@meta-codesync
Copy link

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant