🔧Values & Overrides
Basics
from hypster import HP, instantiate
def child(hp: HP):
x = hp.int(10, name="x")
y = hp.int(20, name="y")
return {"x": x, "y": y}
def parent(hp: HP):
return hp.nest(child, name="child")Dotted keys
instantiate(parent, values={"child.x": 15})
# => {"x": 15, "y": 20}Nested dicts
Precedence: nested dict wins
Deeply nested
Unknown and unreachable parameters
Last updated
Was this helpful?