dswah / pyGAM

[HELP REQUESTED] Generalized Additive Models in Python

Home Page:https://pygam.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Non-pickle export option?

nickeubank opened this issue · comments

Related to #308 , expansion of #201

It'd be great to have a non-pickle export option. As in #308, some people want to move models to other languages, but even for those who are staying in Python, an export option that isn't pickle-dependent would be really nice given how brittle pickles can be to version differences (having trouble not imaging a brittle pickle now...) and the fact some environments don't support their use for security reasons.

@nickeubank Interesting!
What do you thinkwould be a good export format?

I see that scikit-learn supports pickle, joblib (similar to pickle), and onnx.

The Onnx approach would be cool, but requires some custom work. Maybe we can fork the sklearn-onnx repo to get a head start?