We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e3677f + f6a32ff commit 91e0fb8Copy full SHA for 91e0fb8
botorch/models/model.py
@@ -427,7 +427,7 @@ def _get_group_subset_indices(
427
idcs = [idx % cum_output_sizes[-1] for idx in idcs]
428
group_indices: Dict[int, List[int]] = defaultdict(list)
429
for idx in idcs:
430
- grp_idx = int(np.argwhere(idx < cum_output_sizes)[0])
+ grp_idx = np.argwhere(idx < cum_output_sizes)[0].item()
431
sub_idx = idx - int(np.sum(output_sizes[:grp_idx]))
432
group_indices[grp_idx].append(sub_idx)
433
return group_indices
0 commit comments