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

RandomSampler fix to return correct sample size #15

Merged
merged 3 commits into from Jul 18, 2021

Conversation

ilikerobots
Copy link
Contributor

@ilikerobots ilikerobots commented Jul 17, 2021

Status

READY

Breaking Changes

NO

Description

Correct the RandomSampler logic such that it returns a sample of the correct size.

Todos

  • Tests
  • Documentation
  • Examples

@ilikerobots
Copy link
Contributor Author

I noted performance problems with high (~5000) key counts and traced it back to RandomSampler not effectively choosing a sample size. The above PR corrects this.

@ilikerobots ilikerobots changed the title RandomSampler returns correct sample size RandomSampler fix to return correct sample size Jul 17, 2021
@ivoleitao
Copy link
Owner

Hi, thanks for this PR !

I don't know what I was thinking when I did this 😄 . It was obviously wrong...

LGTM

@ivoleitao ivoleitao merged commit ad48afa into ivoleitao:develop Jul 18, 2021
@ivoleitao
Copy link
Owner

I will do a release in the next weekend to fix this bug

@ilikerobots
Copy link
Contributor Author

Great thanks!

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.

None yet

2 participants