#!/usr/bin/env bash
set -euo pipefail
ROOT=/root/disk_3tb/earlywarning/30072026
CODE="$ROOT/suite24_target_conditioned_structural_residual"
LOGDIR="$ROOT/log"
mkdir -p "$LOGDIR"
LOG="$LOGDIR/suite24_target_conditioned_structural_residual.log"
cd "$CODE"
echo "[RUN] Suite24 started $(date --iso-8601=seconds)" | tee "$LOG"
echo "[RUN] code=$CODE" | tee -a "$LOG"
echo "[RUN] log=$LOG" | tee -a "$LOG"
/root/miniconda3/envs/Huy/bin/python3 -u check_suite24_environment.py 2>&1 | tee -a "$LOG"
/root/miniconda3/envs/Huy/bin/python3 -u train_suite24_tcsr.py "$@" 2>&1 | tee -a "$LOG"
echo "[RUN] Suite24 completed $(date --iso-8601=seconds)" | tee -a "$LOG"
