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

Better seeds (related to #349) #353

Merged
merged 1 commit into from Jan 15, 2016
Merged

Better seeds (related to #349) #353

merged 1 commit into from Jan 15, 2016

Conversation

asardaes
Copy link
Contributor

I added a couple of extra safety checks:

  • Making sure there is at least one number in the last element of the seeds list
  • Making sure no seed is NA

I also changed the strategy to create the seed list so that it calls sample.int only once. With the previous strategy there was a chance, however small, that a seed could be repeated. Unfortunately this means that any user who was using the default seed creation method would need to re-run the code to obtain the new reproducible result.

Let me know if you agree with the changes.

Additional safety checks and calling sample.int just once to avoid possible repetition of seeds.
topepo added a commit that referenced this pull request Jan 15, 2016
@topepo topepo merged commit aa665b9 into topepo:master Jan 15, 2016
@topepo
Copy link
Owner

topepo commented Jan 15, 2016

Excellent. 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