forge
forge copied to clipboard
add update function to add items to original flags using dict
Usage:
import forge.experiment_tools as fet
config = forge.config()
update_dict = {"new_key": "new_val"}
fet.update(update_dict) # equivalent to config.new_key = "new_val"
Hi, thanks for the PR! I wonder if maybe a better API for the update function would be update(**kwargs) so that we could call it as update(new_key=ney_val)? You could still use dicts by splaying them as update(**update_dict).
Thanks for the suggestion! I have updated the method.