[docs]@staticmethoddefload(path,class_name,log_if_missing=True):ifos.path.isabs(path):filepath=Path(path)/f"{DefaultParamsLoader.convert_to_snake_case(class_name)}_params.yaml"else:filepath=EnvironmentSettings.default_params_path/path/f"{DefaultParamsLoader.convert_to_snake_case(class_name)}_params.yaml"iffilepath.is_file():withfilepath.open("r")asfile:params=yaml.load(file,Loader=yaml.FullLoader)else:iflog_if_missing:logging.info("DefaultParams: no default parameters were found for {}. Proceeding...".format(class_name))params={}returnparams