Skip to content

Conversation

@rofinn
Copy link
Member

@rofinn rofinn commented Oct 21, 2020

Seems like there's a bit of repeated code between other mode methods and the counts code, 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

@rofinn rofinn requested a review from nalimilan October 21, 2020 22:47
@mschauer
Copy link
Member

mschauer commented Dec 3, 2020

LGTM

Copy link
Member

@nalimilan nalimilan left a 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.)

@rofinn
Copy link
Member Author

rofinn commented Dec 3, 2020

Hmm, I guess this PR need the #621 to be merged?

@nalimilan
Copy link
Member

Unfortunately yes.

Copy link
Member

@nalimilan nalimilan left a 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.

@nalimilan nalimilan closed this Dec 4, 2020
@nalimilan nalimilan reopened this Dec 4, 2020
@rofinn rofinn requested a review from nalimilan December 4, 2020 19:22
@rofinn
Copy link
Member Author

rofinn commented Dec 4, 2020

macOS 1.0 failing test seems unrelated?

@mschauer
Copy link
Member

mschauer commented Dec 4, 2020

This is a bit untypical for a random failure it is also weight related code (fweight) in

@testset "Corrected with $f" for f in weight_funcs

@nalimilan
Copy link
Member

I think it's just bad luck. #624 is an attempt at fixing this.

rofinn and others added 2 commits December 4, 2020 15:44
Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
@mschauer mschauer merged commit 854a541 into master Dec 5, 2020
@nalimilan nalimilan deleted the rf/weighted-mode branch December 5, 2020 11:59
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

Successfully merging this pull request may close these issues.

4 participants