mirror of
https://github.com/Doctorado-ML/benchmark.git
synced 2025-08-16 07:55:54 +00:00
update output file for jobs
This commit is contained in:
@@ -44,6 +44,8 @@ def generate_experiment(data, score, platform):
|
|||||||
f"{datetime.datetime.now().month:02d}{datetime.datetime.now().day:02d}"
|
f"{datetime.datetime.now().month:02d}{datetime.datetime.now().day:02d}"
|
||||||
)
|
)
|
||||||
(model, title, parameters) = data.split("&")
|
(model, title, parameters) = data.split("&")
|
||||||
|
file_name = f"{model}_{score}_{platform}_{day}_{generate_experiment.idx}"
|
||||||
|
output_file_name = f"{file_name}.sh"
|
||||||
strings = [
|
strings = [
|
||||||
("<date>", day),
|
("<date>", day),
|
||||||
("<folder>", path),
|
("<folder>", path),
|
||||||
@@ -51,10 +53,8 @@ def generate_experiment(data, score, platform):
|
|||||||
("<model>", model),
|
("<model>", model),
|
||||||
("<title>", title),
|
("<title>", title),
|
||||||
("<parameters>", parameters),
|
("<parameters>", parameters),
|
||||||
|
("<file_name>", file_name),
|
||||||
]
|
]
|
||||||
output_file_name = (
|
|
||||||
f"{model}_{score}_{platform}_{day}_{generate_experiment.idx}.sh"
|
|
||||||
)
|
|
||||||
data = lines.copy()
|
data = lines.copy()
|
||||||
for item, value in strings:
|
for item, value in strings:
|
||||||
data = [line.replace(item, value) for line in data]
|
data = [line.replace(item, value) for line in data]
|
||||||
|
@@ -5,6 +5,7 @@
|
|||||||
#PBS -q workq
|
#PBS -q workq
|
||||||
### mezcla errores con la salida principal
|
### mezcla errores con la salida principal
|
||||||
#PBS -j oe
|
#PBS -j oe
|
||||||
|
#PBS -o <file_name>.out
|
||||||
### Recursos
|
### Recursos
|
||||||
#PBS -l select=1:ncpus=16:mem=56Gb
|
#PBS -l select=1:ncpus=16:mem=56Gb
|
||||||
#PBS -l place=exclhost
|
#PBS -l place=exclhost
|
||||||
|
@@ -7,5 +7,6 @@
|
|||||||
#SBATCH --job-name="<model>-<score>-<date>"
|
#SBATCH --job-name="<model>-<score>-<date>"
|
||||||
#SBATCH --mail-user=ricardo.montanana@alu.uclm.es # email address
|
#SBATCH --mail-user=ricardo.montanana@alu.uclm.es # email address
|
||||||
#SBATCH --mail-type=END
|
#SBATCH --mail-type=END
|
||||||
|
#SBATCH -o <file_name>.out
|
||||||
#SBATCH -w nodo-7-32
|
#SBATCH -w nodo-7-32
|
||||||
# LOAD MODULES, INSERT CODE, AND RUN YOUR PROGRAMS HERE
|
# LOAD MODULES, INSERT CODE, AND RUN YOUR PROGRAMS HERE
|
Reference in New Issue
Block a user