mit-ll-responsible-ai/hydra-zen

Add Hydra + Pydantic How-To

rsokl opened this issue · 0 comments

rsokl commented

Using the store decorator pattern makes this simple/trivial

from hydra_zen import store
from pydantic import BaseModel

@store(name="zoom", y="hi")
class Foo(BaseModel):
    x: int
    y: str