optimas-org / optimas

Optimization at scale, powered by libEnsemble
https://optimas.readthedocs.io
Other
22 stars 13 forks source link

Show evaluation indices of "top" simulations #173

Closed delaossa closed 7 months ago

delaossa commented 7 months ago

It allows the top evaluation indices to be shown in plot_history.

Example:

gs = mpl.gridspec.GridSpec(2, 2, wspace=0.2, hspace=0.3)
diags.plot_history(top=10, show_top_evaluation_indices=True, show_legend=True, subplot_spec=gs[:, 0])
diags.plot_pareto_front(show_best_evaluation_indices=True, show_legend=True, subplot_spec=gs[0, 1])
diags.plot_worker_timeline(subplot_spec=gs[1, 1])

diags

In addition, helper functions to access the parameter's objects by their name have been added to ExplorationDiagnostics.