How to save a model as a pickle file to managed folder?
![ssuhas76](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar8.png)
hello There,
I have trained a model written in python and need to save it into a pickle file. This file needs to be stored into a managed folder. I have a handle on this managed folder through i am able to save some files in json format, But I need to know how to export pickle files. Please help.
Answers
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,211 Dataiker
Hi @ssuhas76
,
You should be able to use the code sample provided here:
https://community.dataiku.com/t5/Using-Dataiku/save-pickle-in-managed-folder/m-p/21262
Thanks -
Note that the pickle itself will not be very useful, as it contains only the core model and not some other necessary steps, such as the feature preprocessing. You (or others coming to this page) might be interested in our various model export options.
-
Ours is a pretty basic model so we are using the pickle file. Is it possible to export to a managed folder
-
Hi @AlexT
, thanks for your reply. Can this be used with a dataikuapi library? I am trying to export it from the API endpoint code.