File size: 1,918 Bytes
aa677e3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# 🎯 READY TO RUN: Tests & Plots

## βœ… Everything is Ready!

All scripts are created and ready to execute. Here's what to do:

## 🐳 In Docker Container (Recommended)

```bash
# Navigate to project
cd /workspace/edgeeda-agent

# Run everything at once
./run_all.sh
```

That's it! The script will:
1. βœ… Run all agent tests
2. βœ… Generate comprehensive plots
3. βœ… Show summary of results

## πŸ“ What Gets Generated

### Test Results
- Console output with βœ…/❌ for each test
- Summary: "X/Y tests passed"

### Plots (in `runs/plots/`)
- **trials.csv** - All data in CSV format
- **success_rate.png** - How success rate improves over time
- **runtime_distribution.png** - Histogram of how long trials take
- **return_code_distribution.png** - Breakdown of success/failure codes
- **knob_*.png** - Analysis of each knob's values across trials
- **learning_curve.png** - Best reward progression (if rewards available)
- **area_vs_wns.png** - Pareto front visualization (if metrics available)

## πŸ” Quick Check

Before running, verify:
```bash
# Check database exists
ls -la runs/experiment.sqlite

# Check scripts are executable
ls -la run_all.sh run_tests_simple.py generate_plots.py
```

## 🚨 If Something Goes Wrong

1. **"No such file or directory"**
   - Make sure you're in `/workspace/edgeeda-agent`
   - Check: `pwd`

2. **"Permission denied"**
   - Fix: `chmod +x run_all.sh`

3. **"Module not found"**
   - You're not in Docker - enter container first
   - Or install: `pip3 install -e .`

4. **"Database not found"**
   - You need to run experiments first
   - Run: `edgeeda tune --config configs/gcd_nangate45.yaml --budget 5`

## πŸ“€ Getting Results Out

```bash
# Copy plots to host (from host machine)
docker cp <CONTAINER_ID>:/workspace/edgeeda-agent/runs/plots ./runs/

# Or use shared volume if configured
```

## πŸŽ‰ That's It!

Just run `./run_all.sh` in Docker and you're done!