Replies: 1 comment
-
@kmnhan Can you just call your model function directly? I suppose I am somewhat sympathetic, and we do try to allow "array-like" data on input, but So, I guess I am a "maybe" on this... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Although array coercing has a much more consistent behavior with the 1.2.2 update, it happens to break some of my existing code that relies on
xarray
's broadcasting.For instance, when I have a
ModelResult
from a fit, I used to do something likeresult.eval(x=arr)
wherearr
is axarray.DataArray
.This would return a
xarray.DataArray
which retains the coordinates and attributes ofarr
. Now, the output is coerced into a numpy array.Hence it would be great if the coercion for
eval
could be toggled off, for instance with a keyword argument, whereresult.eval(x=arr, coerce_farray=False)
would have the old behavior. This would also mean more consistency withModel.fit
.Beta Was this translation helpful? Give feedback.
All reactions