-
Notifications
You must be signed in to change notification settings - Fork 204
[Doc] Add description of yaml #774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Doc] Add description of yaml #774
Conversation
db053ed
to
5faf154
Compare
docs/zh/development.md
Outdated
|
||
将已有的代码修改成配置文件控制的方式非常简单,只需要将必要的参数写到 `yaml` 文件中,然后通过 hydra 在程序运行时读取、解析该文件,通过其内容控制实验运行即可,以 `bracket` 案例为例,具体包含以下几个步骤。 | ||
|
||
1. 则需在代码文件 `bracket.py` 所在目录下新建 `conf` 文件夹,并在 `conf` 下新建与 `bracket.py` 同名的 `viv.yaml` 文件,如下所示。 |
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.
应该是是 viv.py 吧
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.
已修改
docs/zh/development.md
Outdated
└── viv.yaml | ||
``` | ||
|
||
2. 将 `viv.py` 中必要的超参数按照其语义填写到 `viv.yaml` 的各个层级的配置中,如 `mode`、`output_dir`、`seed`、方程参数、文件路径等参数为通用参数,直接填写在一级层级;而模型结构参数、训练轮数等参数则只与模型、训练相关,只需分别填写在 `MODEL`、`TRAIN` 层级下即可(`EVAL` 层级同理)。 |
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.
这样更通顺些
如通用参数 `mode`、`output_dir`、`seed`、方程参数、文件路径等,直接填写在一级层级
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.
已修改
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.
LGTM
* (WIP)fix doctest and refine document * update docs * fix wrong code in ldc2d * update code * update paranoma * fix * refine doc
PR types
Others
PR changes
Docs
Describe