Add slurm job type

Add pandas requirement
This commit is contained in:
2020-12-22 19:01:15 +01:00
parent e54be9ab4d
commit 159e75410d
5 changed files with 31 additions and 3 deletions

View File

@@ -1,9 +1,10 @@
#!/bin/bash
if [ "$1" = "" -o "$2" = "" -o "$3" = "" ] ; then
if [ "$1" = "" -o "$2" = "" -o "$3" = "" -o "$4" = "" ] ; then
echo "Hay que seleccionar:"
echo " - el tipo de experimento {gridsearch, gridbest, cross}"
echo " - el modelo {stree, adaBoost, bagging, odte}"
echo " - el kernel {linear, poly, rbf, any}"
echo " - el tipo de plataforma {pbs, slurm}"
exit 1
fi
if [[ ! "gridsearchgridbestcross" == *$1* ]] ; then
@@ -18,8 +19,12 @@ if [[ ! "linearpolyrbfany" == *$3* ]] ; then
echo "Hay que seleccionar el kernel {linear, poly, rbf, any}"
exit 1
fi
if [[ ! "pbsslurm" == *$4* ]] ; then
echo "Hay que seleccionar la plataforma {pbs, slurm}"
exit 1
fi
script_path="$(pwd)/.."
cp experiment.template experiment_$1.sh
cp experiment.$4 experiment_$1.sh
perl -i -pe"s/<model>/$2/g" experiment_$1.sh
perl -i -pe"s~<folder>~$script_path~g" experiment_$1.sh
perl -i -pe"s/<experiment>/$1/g" experiment_$1.sh