I wanted to assign each member of a training set to a cross-validation fold. I wanted to do this in a bash script and so ended up using something like the following:
This script generates n numbers selected randomly in the series of integers from 1 to m. In this case m represents the number of cross validation folds.
You could generate a random CV fold assignment like so:
Depending on your input file format of course.
Monday, January 9, 2017
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment