Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeWarning: invalid value encountered in multiply... #2

Closed
kellymarchisio opened this issue May 23, 2018 · 1 comment
Closed

RuntimeWarning: invalid value encountered in multiply... #2

kellymarchisio opened this issue May 23, 2018 · 1 comment

Comments

@kellymarchisio
Copy link

Most times I run this script (though not every time), I get:
.../python2.7/site-packages/scipy/stats/_distn_infrastructure.py:1910: RuntimeWarning: invalid value encountered in multiply lower_bound = self.a * scale + loc
.../python2.7/site-packages/scipy/stats/_distn_infrastructure.py:1911: RuntimeWarning: invalid value encountered in multiply upper_bound = self.b * scale + loc
[['0.584945', '0.000000', '(nan,nan)']]
due to std passed to scipy.stats.norm.interval(0.95, loc=mean, scale=std) in get_gleu_stats being 0.0 (because the scores are either all the same, or a list of size 1).

@keisks
Copy link
Owner

keisks commented May 29, 2018

Yes, if there's a single reference (or all the references are the same), we get this warning.
This is not a bug, but I'll turn the warning off.

@keisks keisks closed this as completed in d1a4a52 Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants