Closed zerolxf closed 3 months ago
Hi @zerolxf, I just tried your code snippet on Google Colab with the uplift trees with synthetic data notebook, and it worked fine. You can run the Colab notebook here. Cell 21 and onward contains the serialization and deserialization of the uplift tree model.
A few things to check. Are you using the latest version of CausalML, which is 0.15.0? Have you tried it in a clean environment? Also, try reinstalling Cython, numpy and causalml. Hope it helps.
Hi everyone,
I've encountered a serialization issue when trying to use
pickle
to serialize anUpliftTreeClassifier
object from thecausalml
library. The specific error message I receive is:This suggests that there's a problem with pickling functions or objects defined in C extensions, which seems to be the case with the
UpliftTreeClassifier
.Here's the code snippet where the issue occurs:
What I've tried so far:
joblib
for serialization, but the issue persists.causalml
documentation but haven't found any relevant information.My questions are:
causalml
models?UpliftTreeClassifier
?Any advice, code snippets, or resources would be greatly appreciated. Thank you in advance for your help!