⚡Instantiating a Config Function
from hypster import instantiate
result = instantiate(model_cfg, values={
"kind": "rf",
"n_estimators": 200,
"max_depth": 12.5,
})
# => {"model": ("rf", 200, 12.5)}Unknown parameters
instantiate(model_cfg, values={"n_trees": 200}, on_unknown="warn")Dotted keys vs nested dicts
Passing args/kwargs to nested configs
Last updated
Was this helpful?