load

negmas.helpers.load(file_name: Union[str, os.PathLike, pathlib.Path])Any[source]

Loads an object depending on the extension of the file given. If the filename given has no extension, DEFAULT_DUMP_EXTENSION will be used

Parameters

file_name – file name

Remarks:

  • Supported formats are json, yaml

  • If None is given, the file will be created but will be empty