View source on GitHub |
Constructs the Experiment config from Flags or equivalent object.
tfm.core.train_utils.ExperimentParser(
flags_obj
)
Most of the cases, users only need to call the parse()
function:
builder = ExperimentParser(FLAGS)
params = builder.parse()
The advanced users can modify the flow by calling the parse_*() functions separately.
Methods
base_experiment
base_experiment()
Get the base experiment config from --experiment field.
parse
parse()
Overrall process of constructing Experiment config.
parse_config_file
parse_config_file(
params
)
Override the configs of params from the config_file.
parse_data_service
parse_data_service(
params
)
Override the data service configs of params from flags.
parse_params_override
parse_params_override(
params
)
parse_runtime
parse_runtime(
params
)
Override the runtime configs of params from flags.