In the following example, I cannot override the field:
config = Config(config_dict={'dataset_path': 'data/questions'})
print(config["dataset_path"])
>>> dataset/nq
Internally, I see that config._get_final_config() returns a config with the correct field 'dataset_path': 'data/questions', but then it gets overridden here:
dataset_name = self.final_config["dataset_name"]
data_dir = self.final_config["data_dir"]
self.final_config["dataset_path"] = os.path.join(data_dir, dataset_name)
Is this intended? IMO this is counter intuitive behaviour
In the following example, I cannot override the field:
Internally, I see that
config._get_final_config()returns a config with the correct field'dataset_path': 'data/questions', but then it gets overridden here:Is this intended? IMO this is counter intuitive behaviour