How to save a model as a pickle file to managed folder?

ssuhas76
Level 3
How to save a model as a pickle file to managed folder?

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.

 

 

0 Kudos
4 Replies
AlexT
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

0 Kudos
ssuhas76
Level 3
Author

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.

0 Kudos
AdrienL
Dataiker

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.

0 Kudos
ssuhas76
Level 3
Author

Ours is a pretty basic model so we are using the pickle file. Is it possible to export to a managed folder

0 Kudos