-
Notifications
You must be signed in to change notification settings - Fork 8
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool work! See comments.
In addition, for test cases, can you dump the kitchen sink hparams jsonschema to a file as a test fixture, and validate the kitchen sink hparams yaml against that? See https://github.com/mosaicml/yahp/blob/a3d21be2c810b95e56492548b11583f37a41de72/tests/fixtures/commented_map.yaml
Forgot to say, but can you also set the |
Co-authored-by: ravi-mosaicml <ravi@mosaicml.com>
Co-authored-by: ravi-mosaicml <ravi@mosaicml.com>
Co-authored-by: ravi-mosaicml <ravi@mosaicml.com>
…to mvpatel2000/json-schema
Would like a careful review on the logic here. A lot of subtle type stuff going on, and I'm still not 100% familiar with autoyahp / hparams_registry so there could be logic errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow -- you're fast. Overall this looks fine, but I would like to see the json schema for the kitchen sink hparams. Would be good to also manually validate this against some of the yamls used in composer to make sure it is compatbile.
This reverts commit 8d1880e.
Reverting and pushing to dev |
* JSON Schema Support (#123) * yaml validation * fix lint and typing * add IO tests * update installs * Update meta.yaml Co-authored-by: ravi-mosaicml <ravi@mosaicml.com> * Update setup.py Co-authored-by: ravi-mosaicml <ravi@mosaicml.com> * Update yahp/hparams.py Co-authored-by: ravi-mosaicml <ravi@mosaicml.com> * resolve multiple comments * support autoyahp * add optional support * support registries * switch to anyOf * nits and kitchen sink test Co-authored-by: ravi-mosaicml <ravi@mosaicml.com> * fix schema generator * fix lint * support singletons in list * support + syntax * add list test * add validation to create as default * fix many tests * compressed schemas * fix comments * update yahp with autoyahp * make schema sorted * missing copy * change enum * don't shortcut primitives * more aggressively type def * checkdown * checkdown * simplify cls_def * allow recursion * remove singleton shortcutting * add param and param prop * stack properties * one more round of comments * support type insensitive regex Co-authored-by: ravi-mosaicml <ravi@mosaicml.com>
Associated JIRAs