Skip to content

Instantly share code, notes, and snippets.

@paulboardman
Created January 9, 2017 14:18
Show Gist options
  • Save paulboardman/1cb679893363ff39be41233e54731737 to your computer and use it in GitHub Desktop.
Save paulboardman/1cb679893363ff39be41233e54731737 to your computer and use it in GitHub Desktop.
example random cv fold assignment
#!/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