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
StatsBase.sample should warn about weights containing Inf/NaN #671
Comments
Good idea. Would you make a pull request? |
I recently ran into a bug due to this issue. A warning about Inf weights would have helped me to find the problem faster. I see the PR wasn't accepted though. Are there still plans to implement this? |
Actually the PR wasn't rejected, it was closed by its author (I don't know why). Would you be willing to make a new PR with its contents? |
|
StatsBase.jl/src/sampling.jl
Lines 499 to 500 in 08d4b77
Perhaps add something like
The text was updated successfully, but these errors were encountered: