probml / pmtk3

Probabilistic Modeling Toolkit for Matlab/Octave.
MIT License
1.55k stars 797 forks source link

Fix the randomize logic in kfold #119

Closed SergioRAgostinho closed 5 years ago

SergioRAgostinho commented 8 years ago

The function is not taking any seed argument to perform controlled randomization. The random generator was being reset and then restored again for no reason. The restoreSeed function which was later invoked was erroring out because the global variables were not set.