Closed ngiann closed 1 year ago
Patch coverage: 100.00
% and project coverage change: -0.03
:warning:
Comparison is base (
25f578b
) 78.77% compared to head (ff41fb8
) 78.75%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Thanks. Looks great. Maybe add some tests to test/crossval.jl
that provide an rng?
Good idea, I will also add a test then.
Looks great. Thanks taking this on!
Thank you for your input. I will update the docs soon.
@ararslan Can you please merge and release this PR?
closed this by accident
Sorry that this took far too long. I incorporated the above discussed changes and updated the tests accordingly. In hindsight, I see now that I should have committed the updated code and the corresponding tests in a single commit. I did it separately, and I think that this is why the commit above failed: the updated code was automatically tested using the old test code and I provided the new test code in a separate, subsequent commit. I hope what I wrote make sense. Sorry for the confusion!
Also: I updated the documentation to reflect the changes in these functions. Please see #58.
Great work here, thanks for your patience and persistence!
Thanks for your guidance!
I modified the code so that the randomness of
Kfold
,StratifiedKfold
andRandomSub
can be controlled.This is done by passing an optional object of type
AbstractRNG
via the new argumentrng
.The default value of the new argument
rng
isMersenneTwister()
.Example:
Kfold(10,2, MersenneTwister(1))
I did not modify
StratifiedRandomSub
as I don't understand where random indices are samples.I also did not modify
LOOCV
as there seems to be naturally no need for it.Fixes #56