Skip to content

Commit

Permalink
Final update of slurm scripts
Browse files Browse the repository at this point in the history
Added slurm script sub_ml_cv for runs with automated cross-validation (similar to sub_slp2_cv for torque)
  • Loading branch information
feranick committed Sep 14, 2018
1 parent 62aa3ca commit d8fb37c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Other/slurm-queue/sub_ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@

logname="log_"${PWD##*/}".txt"

echo $base/$1

# 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
#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
29 changes: 29 additions & 0 deletions Other/slurm-queue/sub_ml_cv
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

0 comments on commit d8fb37c

Please sign in to comment.