Reconstruct a Python object from a file persisted with joblib.dump.
Parameters: | filename: string
mmap_mode: {None, ‘r+’, ‘r’, ‘w+’, ‘c’}, optional
|
---|---|
Returns: | result: any Python object
|
See also
Notes
This function can load numpy array files saved separately during the dump. If the mmap_mode argument is given, it is passed to np.load and arrays are loaded as memmaps. As a consequence, the reconstructed object might not match the original pickled object. Note that if the file was saved with compression, the arrays cannot be memmaped.