Closed rmrmg closed 7 months ago
Hi @rmrmg, 'history' here refers to transfer learning, please see the doc: https://open-box.readthedocs.io/en/latest/advanced_usage/transfer_learning.html
Thx for answer. I think I solved it and understand. For my reference and for other users (and maybe dev team will you this to improve documentation which now is rather cryptic):
in openbox there is two main modes:
for itr in range(number_of_iteration_to_run):
config = advisor.get_suggestion()
calced_value = evaluate_function_using_params_from_config(config)
observation = Observation(config=config, objectives=[calced_value, ])
advisor.update_observation(observation)
In ask-and-tell mode you can feed advisor with whatever you want, e.g. when you perform optimization for 100 steps with Optimizer you can get config space from previous optimizations and continue optimization, and even you can implement earlystopping mechanism by hand.
To the config you can assign element as in this e.g.:
for param in space_dict:
config[param] = space_dict[param]
Thanks @rmrmg! We have updated the docs for the ask-and-tell interface: https://open-box.readthedocs.io/en/latest/examples/ask_and_tell.html
according to https://open-box.readthedocs.io/en/latest/ openbox has such ability: History: Support injecting prior knowledge from previous tasks into the current search How can I do this? I couldn't find any documentation or example about it.