opengsl.config

opengsl.config.load_conf(path: Optional[str] = None, method: Optional[str] = None, dataset: Optional[str] = None)[source]

Function to load config file.

Parameters
  • path (str) – Path to load config file. Load default configuration if set to None.

  • method (str) – Name of the used mathod. Necessary if path is set to None.

  • dataset (str) – Name of the corresponding dataset. Necessary if path is set to None.

Returns

conf – The config file converted to Namespace.

Return type

argparse.Namespace

opengsl.config.save_conf(path, conf)[source]

Function to save the config file.

Parameters
  • path (str) – Path to save config file.

  • conf (dict) – The config dict.