mit-ll-responsible-ai / hydra-zen

Create powerful Hydra applications without the yaml files and boilerplate code.
https://mit-ll-responsible-ai.github.io/hydra-zen/
MIT License
339 stars 15 forks source link

Support parameter-indices in zen-exclude #595

Closed rsokl closed 11 months ago

rsokl commented 11 months ago

E.g.


>>> from hydra_zen import builds, to_yaml
>>> def pyaml(x):
...     # for pretty printing configs
...     print(to_yaml(x))

>>> def bar(x: bool, y: str = 'foo'): return x, y

>>> Conf2 = builds(bar, populate_full_signature=True, zen_exclude=[-1]) # exclude last param
>>> pyaml(Conf2)
_target_: __main__.bar
x: ???