csnlp.util.io.load#
- csnlp.util.io.load(filename)[source]#
Loads data from a (possibly compressed) file.
- Parameters:
- filenamestr, optional
The name of the file to load. If the filename does not end in a known extension, then it fails. The known extensions are
"pickle": .pkl"lzma": .xz"bz2": .pbz2"gzip": .gz"brotli": .bt"blosc2": .bl2"matlab": .mat"numpy": .npz.
- Returns:
- datadict
The saved data in the shape of a dictionary.
- Return type: