Created
January 9, 2017 14:18
-
-
Save paulboardman/1cb679893363ff39be41233e54731737 to your computer and use it in GitHub Desktop.
example random cv fold assignment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eu | |
CV_FOLDS=5 | |
while read mol_name label; do | |
FOLD=$(( (RANDOM % $CV_FOLDS) + 1)); | |
echo -e "mol_name\tlabel\t$FOLD"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment