-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot save SparseLinearDRLearner to persistent memory #251
Comments
Several of our classes (not only DRLearner) use nested local classes, which python's built-in |
Thank you for the quick response. I did try
Does Microsoft provide other open source software that can save these models? |
@kanikavmohan Sorry, serialization is not something we took into account when writing all of our classes, and I'm not sure of any easy workaround. We'll treat this as a bug and will have it fixed in the next version of the package, which we anticipate releasing by the end of next week. Sorry for the inconvenience. |
Hi, is this problem solved? I encountered a similar problem when I was training a DMLCateEstimator. The error report was: "Error: can't pickle generator objects." |
It has been fixed in our repository and is in our latest beta release on pypi (which doesn't yet have a final version). You should be able to install the beta via |
I have econml 0.8.1. I was able to dill.Dump a DMLOrthoForest but when I go to dill.Load I get
Is there any other work around? How can I productionize an econml model if it can't be saved? |
I have encountered similar issues. Just wondering if there is any update on dump/load? |
I trained a SparseLinearDRLearner in EconML, but am unable to save the model to persistent memory using joblib/pickle - I get the following error message:
"AttributeError: Can't pickle local object 'DRLearner.__init__.<locals>.ModelNuisance'".
Is this a known issue? Are there any work arounds?
The text was updated successfully, but these errors were encountered: