-
Notifications
You must be signed in to change notification settings - Fork 0
/
sj.sh
40 lines (34 loc) · 1.36 KB
/
sj.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
#SBATCH --nodes 1
#SBATCH --ntasks 1
#SBATCH --cpus-per-task 28
#SBATCH --mem 120G
#SBATCH --time 2-0
##########################################
##################INPUT:################## sbatch ...
##########################################
############## (HYPER)PARAMETERS ##############
CUTOFF_RADIUS=4.5
RAD_TR_SELECTION=0
RAD_TR_FACTOR=$2 # pass as command line argument
RAD_TR_DISPLACEMENT=0
DATASET_PATH='datasets/gold.xyz' # 'datasets/random-ch4-10k.extxyz' 'datasets/gold.xyz' 'datasets/qm9.xyz'
N_TRAIN_TEST=1000
E_MAX_2=400
################################################
TEMP_VAR=${DATASET_PATH:9:-1}
DATA_SET=${TEMP_VAR//.*} # just some string manipulations
# AUTOMATIC OUTPUT FILE NAME:
OUTPUT_NAME='TR'$RAD_TR_SELECTION'_F'$RAD_TR_FACTOR'_D'$RAD_TR_DISPLACEMENT'_E'$E_MAX_2'_'$N_TRAIN_TEST'_a'$CUTOFF_RADIUS'_'$DATA_SET.out
OUTPUT_PATH='/home/ach/radial-physics_new/radial-physics/output/TR2_rscal/TR_0/'
# module load gcc
# module load python
# source /home/ach/fidis_venv/bin/activate
export OMP_NUM_THREADS=28
echo STARTING AT `date` > $OUTPUT_PATH/$OUTPUT_NAME
python -u $1 $CUTOFF_RADIUS $RAD_TR_SELECTION $RAD_TR_FACTOR $DATASET_PATH $N_TRAIN_TEST $E_MAX_2 $RAD_TR_DISPLACEMENT\
>> $OUTPUT_PATH/$OUTPUT_NAME
echo FINISHED at `date` >> $OUTPUT_PATH/$OUTPUT_NAME
#rm splines/*
#rm slurm*
#mv slurm-* /home/ach/radial-physics_new/radial-physics/slurms