You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a couple of features that would be very useful regarding how the history is saved.
Saving the history file when the run is completed. Currently it is saved every k_sims or k_gens, but the last few iterations are missing if, for example, sim_max is not a multiple of k_sims. This could be implemented by forcing a save on _final_receive_and_kill. Currently, a workaround is to use this function from the tools, but the name of the file follows a different format and leads to always having 2 history files per run (plus a .picke file).
Choose whether the date information should be added to the name of the history file. Having this enabled by default results in many history files being created in optimas when a single exploration is run in several steps or resumed (Allow resuming an exploration and running in substeps optimas-org/optimas#118). This is because the _save_every_k method is not able to delete the old files, which were created in previous calls to libE.
As a "nice to have", it would be convenient to have some control on the name of the history file.
Below is an example of how these options could be controlled by the user.
libe_specs['save_history_on_completion'] =Truelibe_specs['save_history_with_date'] =False# To save as `libE_history_after_sim_{}.npy`libe_specs['history_file_prefix'] ='exploration_history'# Would allow us to customize it to `exploration_history_after_sim_{}.npy` in optimas.
Let me know what you think.
The text was updated successfully, but these errors were encountered:
Hi @jlnav, thanks for the update. The first one looks like a good default to me. With respect to the second point, I'm not sure. The setting says save_H, so the fact that it also saves persis_info might not be clear to the user. For the particular case of optimas, we don't need the persis_info file, so I would in principle avoid saving it to simplify the output.
Just being a bit nitpicky, it's great to have these options already :D
There are a couple of features that would be very useful regarding how the history is saved.
k_sims
ork_gens
, but the last few iterations are missing if, for example,sim_max
is not a multiple ofk_sims
. This could be implemented by forcing a save on _final_receive_and_kill. Currently, a workaround is to use this function from the tools, but the name of the file follows a different format and leads to always having 2 history files per run (plus a .picke file)._save_every_k
method is not able to delete the old files, which were created in previous calls tolibE
.Below is an example of how these options could be controlled by the user.
Let me know what you think.
The text was updated successfully, but these errors were encountered: