You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No, you can't pickle these using pickle I'm pretty sure. If you attach it as a method then you can. I've done this elsewhere where we have different standalone loglikelihood functions.
I just went through 3 machine learning talks by users of scikit-learn at pycon.
Having to pickle a model for later prediction use sounds a bit inefficient.
We also have an issue that the formula information of patsy cannot be pickled, #1263
similar to a transform "raw data -> exog" in a pipeline. see also #987 for formulas in prediction (intervals).
Checking some of my oldest branches, I found a version that would work for stateless predict functions based on a model or result created by __new__.
stateless is if all information is in params,
some models use extra information, like the decomposition of params.
Activity
jseabold commentedon Apr 11, 2014
Similar #737.
No, you can't pickle these using pickle I'm pretty sure. If you attach it as a method then you can. I've done this elsewhere where we have different standalone loglikelihood functions.
We could look into using
dillfor the pickling.josef-pkt commentedon Apr 11, 2014
I just went through 3 machine learning talks by users of scikit-learn at pycon.
Having to pickle a model for later prediction use sounds a bit inefficient.
We also have an issue that the formula information of patsy cannot be pickled, #1263
similar to a transform "raw data -> exog" in a pipeline. see also #987 for formulas in prediction (intervals).
josef-pkt commentedon Jul 27, 2015
Checking some of my oldest branches, I found a version that would work for stateless predict functions based on a model or result created by
__new__.stateless is if all information is in
params,some models use extra information, like the decomposition of params.
master...josef-pkt:predict_function