Fixed bug in get_training_folds
I broke stuff. :(