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
I'm a little unsure why returning 0 is appropriate if y_true_sample != y_pred_sample Or are you saying that when y_true_sample is the same as y_pred_sample, scipy throws a ValueError?
In
https://github.com/OpenFreeEnergy/arsenic/blob/main/arsenic/stats.py#L81-L83
The scipy.stats.linregress were used to find the R2.
In the older versions (scipy<1.8) when both x and y are the same value, for example:
will return a runtime warning.
Now this would return a ValueError, it might be good to catch this exception and return 0? Thanks.
The code to reproduce this error is
The text was updated successfully, but these errors were encountered: