Created
January 9, 2017 14:18
example random cv fold assignment
This file contains 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