Recantly I get puzzled on getting same random numbers when I was using nfold_cv to testify parameters. After reading the source code of that function, I don't think it's proper to change the global random seed.
So I have done some changes on the source code to fix that problem.
remove the importing of Random:seed!
import Random:MersenneTwister as seed generator
generate randidx using local seed without changing global seed
Hello
Recantly I get puzzled on getting same random numbers when I was using
nfold_cv
to testify parameters. After reading the source code of that function, I don't think it's proper to change the global random seed.So I have done some changes on the source code to fix that problem.
Random:seed!
Random:MersenneTwister
as seed generatorrandidx
using local seed without changing global seed