-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_experiment.sh
More file actions
executable file
·39 lines (32 loc) · 1.27 KB
/
Copy pathrun_experiment.sh
File metadata and controls
executable file
·39 lines (32 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
set -e
# Create results directory
mkdir -p results
echo "========================================================"
echo " ROBUSTNESS VERIFICATION EXPERIMENT (RESEARCH TRACK) "
echo "========================================================"
echo "Date: $(date)"
echo "Repo: Prompt Generator"
echo "--------------------------------------------------------"
# 1. Run Unit Tests (Pilot Verification)
echo "[*] Step 1: Verifying Test Harness (Unit Tests)..."
python -m pytest tests/test_robustness_pilot.py -v
# 2. Run Full Experiment
echo ""
echo "[*] Step 2: Executing Main Robustness Sweep..."
python src/run_experiment.py --seed 1234 --trials 10 --output results/experiment_run.jsonl
# 3. Run Prompt Variant Benchmark (Pilot Run)
echo ""
echo "[*] Step 3: Executing Prompt Variant Benchmark (Pilot)..."
python src/run_benchmark.py --trials 1 --variants baseline robustness_hardened
# 4. Generate Summary Report (Simple Grep/Awk stats)
echo ""
echo "[*] Step 4: Experiment Summary"
echo "Total Trials:"
wc -l results/experiment_run.jsonl
echo "Crash Count:"
grep '"crashed": true' results/experiment_run.jsonl | wc -l
echo "Validation Failure Count:"
grep '"valid": false' results/experiment_run.jsonl | wc -l
echo ""
echo "[SUCCESS] Experiment completed. Artifacts in results/"