pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.47k stars 1.97k forks source link

Numpy deprecation warning issued from within `test_metropolis.py` #7369

Open ricardoV94 opened 2 weeks ago

ricardoV94 commented 2 weeks ago

Description

 tests/step_methods/test_metropolis.py: 15950 warnings
  D:\a\pymc\pymc\pymc\backends\ndarray.py:118: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    data[key][self.draw_idx] = val