Skip to content

Commit 1a68569

Browse files
committed
typo
1 parent 95dd275 commit 1a68569

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libensemble/gen_funcs/persistent_ax_multitask.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,9 @@ def max_utility_from_GP(n, m, gr, hifi_task):
376376
f, cov = m.predict(obsf)
377377
# Compute expected utility
378378
u = -np.array(f["hifi_metric"])
379-
best_arm_indx = np.flip(np.argsort(u))[:n]
379+
best_arm_index = np.flip(np.argsort(u))[:n]
380380
gr_new = GeneratorRun(
381-
arms=[gr.arms[i] for i in best_arm_indx],
381+
arms=[gr.arms[i] for i in best_arm_index],
382382
weights=[1.0] * n,
383383
)
384384
return gr_new

0 commit comments

Comments
 (0)