scikit-learn-contrib/lightning

install help

7starsea opened this issue · 0 comments

I tried

pip install sklearn-contrib-lightning

and when I run from lightning.regression import SDCARegressor, I got the ValueError
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 80 from PyObject.

and then I tried

git clone https://github.com/scikit-learn-contrib/lightning.git
cd lightning
python setup.py install

and when I run from lightning.regression import SDCARegressor, I got the ModuleNotFoundError ModuleNotFoundError: No module named 'lightning.impl.randomkit.random_fast'.

I accidently run in the repository director... and this is why I got the ModuleNotFoundError

My python env is

python=3.8.12
numpy=1.19.3
scipy=1.7.3
cython=0.29.25
gcc=9.3.1

Aimin