You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For multidimensional x data formatted as a DxN array as described in the documentation, any D greater than 2 will cause iminuit to fail with the following error:
File "/usr/lib/python3.11/site-packages/iminuit/cost.py", line 1721, in _call
y, yerror = self._masked.T[self._ndim :]
^^^^^^^^^
ValueError: too many values to unpack (expected 2)
However, with correctly formatted data, x.ndim can only give 1 or 2, and D is instead given by np.atleast_2d(x).shape[0] or simply x.shape[0] if the atleast_2d call that is already in the method is moved earlier.
The text was updated successfully, but these errors were encountered:
For multidimensional x data formatted as a DxN array as described in the documentation, any D greater than 2 will cause iminuit to fail with the following error:
See https://stackoverflow.com/questions/76127508/iminuit-high-dimension-multivariate-fit-problem
I believe this is because the following line assumes that x.ndim gives D:
iminuit/src/iminuit/cost.py
Line 2194 in 298afad
However, with correctly formatted data,
x.ndim
can only give 1 or 2, and D is instead given bynp.atleast_2d(x).shape[0]
or simplyx.shape[0]
if theatleast_2d
call that is already in the method is moved earlier.The text was updated successfully, but these errors were encountered: