#!/bin/bash

REGION="W025"
PATIENCE="10"
TEACHER_FORCING="0.0"
LOG_SCALE="False"
ATTENTION="True"

DROPOUT_VALUES=("0.2" "0.35" "0.5")
HIDDEN_SIZES=("32" "64" "128")
CELL_TYPES=("rnn" "gru" "lstm")

for CELL_TYPE in "${CELL_TYPES[@]}"; do
  for DROPOUT in "${DROPOUT_VALUES[@]}"; do
    for HIDDEN_SIZE in "${HIDDEN_SIZES[@]}"; do
      echo "Submitting $CELL_TYPE | dropout=$DROPOUT | hidden=$HIDDEN_SIZE"
      sbatch -A bsc32 -q acc_bsces launch_training_rnn_multiconfig.sh \
        $CELL_TYPE $ATTENTION $DROPOUT $HIDDEN_SIZE $PATIENCE $REGION $TEACHER_FORCING $LOG_SCALE
      sleep 1
    done
  done
done
