edtechre / pybroker

Algorithmic Trading in Python with Machine Learning
https://www.pybroker.com
Other
1.94k stars 246 forks source link

About update numpy to 2.0 #129

Open albertandking opened 3 months ago

albertandking commented 3 months ago

Hi, Ed

  1. numpy had released 2.0 at 20240617, ref: https://numpy.org/news/;
  2. pybroker should consider update numpy 1.x to numpy 2.0
  3. I have test numpy 2.0 in pybroker, we can just replace np.float_ to np.float64 in all source code;
  4. then should set numba version great than 0.60.0, ref: https://numba.readthedocs.io/en/stable/release/0.60.0-notes.html
  5. If you consider update it, I will pr to dev branch.
edtechre commented 3 months ago

Thank you @albertandking! Yes, please PR. Note, I have already replaced np.float_ references.

albertandking commented 3 months ago

Thank you @albertandking! Yes, please PR. Note, I have already replaced np.float_ references.

Ok, I have #130

edtechre commented 2 months ago

TA-Lib and Riskfolio-Lib do not yet support Numpy 2.0. Rolling back this change since these libraries are referenced in notebooks.

There will be nothing to stop people from forcing an update to Numpy 2.0 on their own though. Once the ecosystem is more compatible, I will bump the version to Numpy 2.0 again.

albertandking commented 2 months ago

TA-Lib and Riskfolio-Lib do not yet support Numpy 2.0. Rolling back this change since these libraries are referenced in notebooks.

There will be nothing to stop people from forcing an update to Numpy 2.0 on their own though. Once the ecosystem is more compatible, I will bump the version to Numpy 2.0 again.

OK