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
ValueError: Fit function must take exactly one positional argument
But this should be allowed.
This comes from the requirement that fit parameters must be passed as keyword arguments. But it limits the use to functions.
Note that curve_fit(Model().__call__, x, p0={'param': sc.scalar(1)}) has the same problem. We need to define a wrapper function or lambda to workaround the limitation.
The text was updated successfully, but these errors were encountered:
Currently, this
raises
But this should be allowed.
This comes from the requirement that fit parameters must be passed as keyword arguments. But it limits the use to functions.
Note that
curve_fit(Model().__call__, x, p0={'param': sc.scalar(1)})
has the same problem. We need to define a wrapper function or lambda to workaround the limitation.The text was updated successfully, but these errors were encountered: