Config class

class config.Config[source]

Class to handle configuration from input file and command line args.

Methods

defaultConfig()

This method generates default config variables.

getArgs()

Get the command line configuration.

getConfig()

Get the input configuration.

parseArgs()

Set up the argument parser with a few additions to handle multi-node training.

parseConfig()

Parse the configuration from the input yaml file.

printConfig()

Print out the configuration.

set(key, val)

Add new variables to the configuration.

defaultConfig()[source]

This method generates default config variables. Any new variables meant to go in the YAML config file should go here as well. One should use the set() method.

getArgs()[source]

Get the command line configuration.

Returns
A argparse object.
getConfig()[source]

Get the input configuration.

Returns
A Dictionary which holds the configuration.
parseArgs()[source]

Set up the argument parser with a few additions to handle multi-node training.

parseConfig()[source]

Parse the configuration from the input yaml file.

printConfig()[source]

Print out the configuration.

set(key, val)[source]

Add new variables to the configuration.