#!/bin/bash
# 11_RUN_YIELD_PREDICTION.sh
# ==========================
# Script to run yield prediction model comparison
# This compares CI-only vs CI+Ratoon models
#
# Usage: ./11_run_yield_prediction.sh [project_dir]
#   - project_dir: Project directory name (default: esa)

# Set default project
PROJECT_DIR=${1:-esa}

echo "=== Running Yield Prediction Comparison ==="
echo "Project: $PROJECT_DIR"
echo "Timestamp: $(date)"
echo ""

# Run the R script
Rscript r_app/11_yield_prediction_comparison.R "$PROJECT_DIR"

echo ""
echo "=== Yield Prediction Comparison Complete ==="
echo "Check output/reports/yield_prediction/ for results"
