Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
everyday-eye-movements-predict-personality/01_train_classifiers.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (17 sloc)
503 Bytes
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
n_parallel_jobs=6 # number of jobs that will be run in parallel | |
n_total_jobs=100 | |
for li in $(seq 0 $n_parallel_jobs $n_total_jobs); | |
do | |
# the for loop below will start n_parallel_jobs for each trait | |
# unless n_total_jobs will be reached first (this is checked in the if statementc) | |
mi=`expr "$li" + "$n_parallel_jobs"` | |
if [ "$mi" -gt "$n_total_jobs" ] | |
then | |
mi=$n_total_jobs | |
fi | |
for t in $(seq 0 6); | |
do | |
python2.7 -m classifiers.train_classifier -t $t -s 0 -a 0 -l $li -m $mi | |
wait | |
done | |
done |