causalml
causalml copied to clipboard
binary incompatibility. Expected 352 from C header, got 328 from PyObject

This seems similar to issue #495. I did some digging around and found that it could be related to the underlying Cython implementation. However, I haven't yet found a fix.
Hi, @CoteDave, It is highly likely that while causalml was installed with cython compiled using one version of sklearn as its dependency, you now have another one installed in your environment. You can:
- Switch to the correct scikit-learn version <=1.0.2.
- Reinstall causalml with cython compilation or install the package from source. Please, make sure that scikit-learn<=1.0.2.
I met the same issue when importing UpliftTreeClassifier. The sklearn version is 1.0.2