#!/usr/bin/env bash
# Train the A9M ensemble (8 members, E4 + augmentations noise/gain/swap/mixup) through benchopt and export the submission folder.
# Log: train_a9m.log. Output: sleep_onset/outputs/CNN-feat-GRU-Ensemble-A9M/{submission.py,weights.pt}
cd "$(dirname "$0")"
/root/miniconda3/bin/benchopt run sleep_onset --config sleep_onset/training.yml -s CNN-feat-GRU-Ensemble-A9M 2>&1 | grep --line-buffered -v "^warning" | tee train_a9m.log
echo "EXIT CODE ${PIPESTATUS[0]}" | tee -a train_a9m.log
/root/miniconda3/bin/python show_score.py 2>&1 | tee -a train_a9m.log
