libcity.config.config_parser

class libcity.config.config_parser.ConfigParser(task, model, dataset, config_file=None, saved_model=True, train=True, other_args=None, hyper_config_dict=None)[source]

Bases: object

use to parse the user defined parameters and use these to modify the pipeline’s parameter setting. 值得注意的是,目前各阶段的参数是放置于同一个 dict 中的,因此需要编程时保证命名空间不冲突。 config 优先级:命令行 > config file > default config

get(key, default=None)[source]