How can I save a "UpliftTreeClassifier" model?
I want to save models and reuse them in other scenes. However, when I execute "pickle.dump(model, file) ", it reports an error :
PicklingError: Can't pickle <cyfunction UpliftTreeClassifier.evaluate_KL at 0x00000210E9C5E818>: attribute lookup evaluate_KL on causalml.inference.tree.uplift failed
How can I save a "UpliftTreeClassifier" model? Thank u very much.
I found a example notebook: https://colab.research.google.com/drive/1ud45oYCLFo6mWLDnK_uKpdQ9M7Oy5b7i?usp=sharing but it doesn't work
my version: 0.12.1
It works for me, @helenykwang do you mind providing the errors you run into?

It works for me, @helenykwang do you mind providing the errors you run into?
Thanks for your reply, it can be saved normally on colab, but it fails to save on the local environment. Same version, same code.
@paullo0106

env: win10,python3.6.5
it works ,using causalml <= 0.11.1 ,not work when causalml >= 0.12.0
I think there is some problem with cpython file @jeongyoonlee @paullo0106 :

Hi @helenykwang, it sounds like the issue related to Cython on Windows. Which version of Cython do you have? Could you update Cython to the latest version and try again? I don't have a windows system to reproduce the issue on my end.