Commit f911e63
Simplify task value remapping API
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: D909982431 parent 940092e commit f911e63
1 file changed
Lines changed: 0 additions & 7 deletions
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | 109 | | |
111 | 110 | | |
112 | | - | |
113 | 111 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 112 | | |
119 | | - | |
120 | 113 | | |
121 | 114 | | |
122 | 115 | | |
| |||
0 commit comments