#!/bin/bash

# Use BASE_PATH from environment or set default if not defined
BASE_PATH=${BASE_PATH:-"./"}
# Remove trailing slash if present
BASE_PATH=${BASE_PATH%/}

# Define the path to the Python script using BASE_PATH
PYTHON_SCRIPT="${BASE_PATH}/scripts/notebooks/equities/eval_equities.py"

# Define common arguments
COMMON_ARGS="--date 2025-05-07" # Assuming year 2025 based on previous context

# Check if the python script exists
if [ ! -f "$PYTHON_SCRIPT" ]; then
    echo "Error: Python script not found at $PYTHON_SCRIPT"
    exit 1
fi

echo "Starting evaluations..."
echo "====================="

# Run 1: long-conv
echo "Running: set seq (YAML: equities/set_equities_small_model)"
python "$PYTHON_SCRIPT" \
    --model_name set_MLP \
    --experiment_yaml equities/set_equities_small_model \
    $COMMON_ARGS
echo "Finished: set seq"
echo "---------------------" 

# chmod +x run_evaluation_set_seq.sh
# ./run_evaluation_set_seq.sh