🍡Selecting Output Variables
Return directly
from hypster import HP
def model_cfg(hp: HP):
# ... define parameters ...
return {"model": model, "config": config}
cfg = instantiate(model_cfg, values={...})
run("Hello", **cfg) # consumes only what it needsUsing hp.collect
def build(hp: HP):
model = ...
optimizer = ...
learning_rate = ...
return hp.collect(locals(), include=["model", "optimizer", "learning_rate"])Last updated
Was this helpful?