-
Notifications
You must be signed in to change notification settings - Fork 190
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
support Float32 for alias sampling #499
Conversation
Codecov Report
@@ Coverage Diff @@
## master #499 +/- ##
==========================================
+ Coverage 83.99% 84.04% +0.04%
==========================================
Files 21 21
Lines 2162 2162
==========================================
+ Hits 1816 1817 +1
+ Misses 346 345 -1
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #499 +/- ##
==========================================
+ Coverage 83.99% 84.04% +0.04%
==========================================
Files 21 21
Lines 2162 2162
==========================================
+ Hits 1816 1817 +1
+ Misses 346 345 -1
Continue to review full report at Codecov.
|
See #506 for a fix which uses (and bump this PR as I am also getting this error but with |
Yeah, I added a limitation that the element type of |
The problem is that:
creates The best way to make sure that all works is to add a test case with integer weights in your PR. The best way to get a type for The other change is that in my PR we pass a weight vector to |
What's required of this PR before it can get merged? (related: JuliaStats/Distributions.jl#1074) |
AFAICT the implementation would have to be fixed and appropriate tests added to check its correctness. |
Sorry it's been a pretty long time. I can hardly remember what I tried to do here... @bkamins Could you be more specific about what have to be fixed? |
As commented above |
Ok, thanks, now I get it. It seems a bit more tricky than I thought. Let me do more local tests first. |
Could anyone help enable the CI? @bkamins , I just notice that the |
Actually I think your original PR https://github.com/JuliaStats/StatsBase.jl/pull/506/files is enough. 😵😵😵 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Let us wait for CI to pass
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
Test failures with Julia nightly are unrelated, all other tests pass. |
Thank you for the PR @findmyway! |
This fixes #158