-
Notifications
You must be signed in to change notification settings - Fork 194
Adds a weighted mode call #611
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
Conversation
|
LGTM |
nalimilan
left a comment
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.
Thanks, looks mostly good.
(For reference, we don't use countmap because it requires iterating over the dict to find what's the largest value. This could probably be fixed by allowing the countmap implementation do keep track of the highest value, but that can be left for later.)
|
Hmm, I guess this PR need the #621 to be merged? |
|
Unfortunately yes. |
nalimilan
left a comment
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.
Sorry I forgot that the docstrings need to mention the new methods.
36e4109 to
882e49c
Compare
|
macOS 1.0 failing test seems unrelated? |
|
This is a bit untypical for a random failure it is also weight related code (fweight) in Line 168 in 217da39
|
|
I think it's just bad luck. #624 is an attempt at fixing this. |
Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
Seems like there's a bit of repeated code between other
modemethods and thecountscode, but I've attempted to keep these changes isolated to what I need for now.This PR would let me remove this https://github.com/invenia/Impute.jl/blob/master/src/utils.jl#L31