-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added slurm script sub_ml_cv for runs with automated cross-validation (similar to sub_slp2_cv for torque)
- Loading branch information
Showing
2 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
!/bin/bash | ||
#use the script as follows: | ||
# sbatch sub_ml <trainFile> <testFile> | ||
|
||
#SBATCH --nodes=1 # Request 2 nodes | ||
#SBATCH -t 100:00:00 # Request 12 hours in walltime. | ||
#SBATCH --job-name=test # Job name | ||
#SBATCH -o log_output # output file | ||
#SBATCH -e log_error # error file | ||
#SBATCH --ntasks=1 # total number of cores required. Nodes*24 | ||
#SBATCH --export=ALL | ||
|
||
# Load environment modules | ||
#. /usr/share/Modules/init/bash | ||
|
||
#execdir="/home/nicola/exec/bin/" | ||
#basepy=$execdir/python3 | ||
|
||
#base=${PWD} | ||
|
||
logname="log_"${PWD##*/}".txt" | ||
|
||
# Use argument specific cross validation file: | ||
#SpectraLearnPredict2 -a $base/$1 $base/$2 2>&1 | tee -a $logname | ||
#SpectraLearnPredict2 -a $1 $2 2>&1 | tee -a $logname | ||
|
||
# Use randomly created cross validation dataset: | ||
#SpectraLearnPredict2 -a $base/$1 2>&1 | tee -a $logname | ||
SpectraLearnPredict2 -a $1 2>&1 | tee -a $logname |