Hi spreg development team,
In my recent spatial regression teaching session, my students encountered an error when running the SEM model over Airbnb datasets.
Error: TypeError: only 0-dimensional arrays can be converted to Python scalars.
After checking, I believe this relates to the recent numpy version update to 2.4.0 near the end of last year.
apple/coremltools#2633
https://github.com/numpy/numpy/releases/tag/v2.4.0
My suggestion to them now is to downgrade to numpy 2.3 or below, and it works fine.
It will be nice to adjust the code to accommodate this change in numpy, or specify the version in the environment yml file to avoid future issues.
I can provide examples/environment set up for you to replicate the issues.
Best,
Qunshan
Hi spreg development team,
In my recent spatial regression teaching session, my students encountered an error when running the SEM model over Airbnb datasets.
Error: TypeError: only 0-dimensional arrays can be converted to Python scalars.
After checking, I believe this relates to the recent numpy version update to 2.4.0 near the end of last year.
apple/coremltools#2633
https://github.com/numpy/numpy/releases/tag/v2.4.0
My suggestion to them now is to downgrade to numpy 2.3 or below, and it works fine.
It will be nice to adjust the code to accommodate this change in numpy, or specify the version in the environment yml file to avoid future issues.
I can provide examples/environment set up for you to replicate the issues.
Best,
Qunshan