以train命令为例,可以设置若干参数,如’–serialization-dir’,’–recover’,’–overrides’,’–file-friendly-logging’。
'–overrides’这一项可以对json配置文件的某些项进行覆盖,官方对这一项的帮助如下:
a JSON structure used to override the experiment configuration
即使用一个json,修改配置文件的某些项。比如需要iterator的batch_size,可以这样写:
-o {\\"iterator.batch_size\\":16}
也就是从配置文件递归地找到需要设置的那一项,中间用句号“.”分割开。
以下是我改的help:
a JSON structure used to override the experiment configuration,’
',e.g.{\“iterator.batch_size\”:16}, the key means to recursively ’
'look for a key in the parameter file, each key is separated by “.”