| 12345678910111213141516171819202122232425 |
- #!/usr/bin/env bash
- set -euo pipefail
- ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
- cd "$ROOT_DIR"
- if [[ -n "${PYTHON_BIN:-}" ]]; then
- PYTHON="$PYTHON_BIN"
- elif command -v python >/dev/null 2>&1; then
- PYTHON="$(command -v python)"
- elif command -v python3 >/dev/null 2>&1; then
- PYTHON="$(command -v python3)"
- else
- echo "Python interpreter not found. Set PYTHON_BIN or activate the target environment." >&2
- exit 1
- fi
- OUTPUTS_DIR="${OUTPUTS_DIR:-outputs/experiments/optimized}"
- RESULTS_DIR="${RESULTS_DIR:-results/optimized}"
- "$PYTHON" tools/summarize_results.py --outputs-dir "$OUTPUTS_DIR" --results-dir "$RESULTS_DIR"
- echo "[done] results written to:"
- echo " - ${RESULTS_DIR}/experiment_summary.csv"
- echo " - ${RESULTS_DIR}/experiment_summary.md"
|