Title
#beginners-need-help
d

Daehyun Kim

12/28/2021, 11:44 PM
Is there a quick and simple way to load pickle file that is saved from the pipeline as a
pickle.PickleDataSet
type using plain
pickle
module? for example, I have
model_metrics.pickle
that is PickleDataSet and how can I load it via
pickle.load()
?
datajoely

datajoely

12/29/2021, 11:20 AM
Hi @User there are 3 way that may be useful
11:21 AM
1. Using standard pickle library and context manager:
python
with open('path/to/pickle.pkl', 'rb') as f:
    x = pickle.load(f)
11:22 AM
2. Using the Kedro class
python
from kedro.extras.pickle import PickleDataSet
ds = PickleDataSet('path/to/pickle.pkl')
ds.load()
11:22 AM
3. Using the Kedro IPython/Jupyter comamnd
bash
catalog.load('catalog_entry_name')
d

Daehyun Kim

12/29/2021, 5:16 PM
thank you!!
5:16 PM
happy new year!!