Commit 69496e9
authored
purge some uninteresting stats from wandb logging (#4546)
# Summary
Reduce training/environment stats volume and simplify StatsReporter
output. This trims low‑value metrics, removes weight/dormant‑neuron
reporting, and narrows rolling averages to a small set of required env
metrics.
# Why
We’re intentionally cutting noisy or redundant metrics to lower logging
overhead and make dashboards easier to read, while keeping core signals
intact.
# What changed
## Environment stats production (mettagrid)
- Removed label completion tracking/emission from `StatsTracker`.
- Reward estimate diffs and env timing stats are still produced in the
env but are now filtered out before logging.
## Stats filtering (metta/rl/stats.py)
- `filter_movement_metrics` now drops:
- `env_attributes/*`
- `env_reward_estimates/*`
- `env_timing_per_epoch/*`
- `env_timing_cumulative/*`
- Removed stale `env_label_completions/*` filter entry (metric no longer
produced in this branch).
- Core movement metrics kept: only the four direction counters.
## StatsReporter (metta/rl/training/stats_reporter.py)
- Removed weight metrics + dormant‑neuron analysis.
- Removed `parameters/*` payload (learning rate, epoch steps,
minibatches, schedulefree extras).
- Hyperparameters now come only from optimizer param groups (lr,
schedulefree scheduled_lr, lr_max).
- Rolling averages computed only for `default_zero_metrics` instead of
all env metrics.
## W&B logger (metta/rl/training/wandb_logger.py)
- Removed direct logging of `latest_losses_stats`; losses now only flow
through StatsReporter.
- If StatsReporter is disabled, loss metrics will not appear.
## System monitor (mettagrid)
- Dropped static counters: cpu_count, cpu_count_logical/physical,
memory_total_mb, gpu_count.
# Behavior / compatibility notes
- W&B/env metric output is substantially reduced. Any dashboards/scripts
that reference removed metrics will need updates.
- Loss metrics are no longer emitted by WandbLogger when StatsReporter
is disabled.
# Testing
Not run (stats/logging changes only).
# Files touched
- metta/rl/stats.py
- metta/rl/training/stats_reporter.py
- metta/rl/training/wandb_logger.py
- packages/mettagrid/python/src/mettagrid/envs/stats_tracker.py
- packages/mettagrid/python/src/mettagrid/profiling/system_monitor.py
- tests/rl/test_stats_reporter_defaults.py
[Asana
Task](https://app.asana.com/1/1209016784099267/project/1210348820405981/task/1212600739220124)1 parent 4e9733f commit 69496e9
File tree
6 files changed
+32
-180
lines changed- metta/rl
- training
- packages/mettagrid/python/src/mettagrid
- envs
- profiling
- tests/rl
6 files changed
+32
-180
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | | - | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
| |||
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
46 | | - | |
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
50 | | - | |
51 | 46 | | |
52 | 47 | | |
53 | 48 | | |
| |||
87 | 82 | | |
88 | 83 | | |
89 | 84 | | |
90 | | - | |
91 | 85 | | |
92 | | - | |
93 | 86 | | |
94 | 87 | | |
95 | | - | |
96 | 88 | | |
97 | 89 | | |
98 | 90 | | |
| |||
107 | 99 | | |
108 | 100 | | |
109 | 101 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 102 | | |
115 | 103 | | |
116 | 104 | | |
| |||
355 | 343 | | |
356 | 344 | | |
357 | 345 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | 346 | | |
363 | 347 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
| 348 | + | |
370 | 349 | | |
371 | 350 | | |
372 | 351 | | |
373 | 352 | | |
374 | | - | |
375 | 353 | | |
376 | 354 | | |
377 | 355 | | |
378 | | - | |
379 | 356 | | |
380 | 357 | | |
381 | 358 | | |
| |||
386 | 363 | | |
387 | 364 | | |
388 | 365 | | |
389 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
390 | 370 | | |
391 | 371 | | |
392 | 372 | | |
| |||
402 | 382 | | |
403 | 383 | | |
404 | 384 | | |
405 | | - | |
406 | | - | |
407 | | - | |
| 385 | + | |
408 | 386 | | |
409 | 387 | | |
410 | 388 | | |
| |||
433 | 411 | | |
434 | 412 | | |
435 | 413 | | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | 414 | | |
474 | 415 | | |
475 | 416 | | |
| |||
490 | 431 | | |
491 | 432 | | |
492 | 433 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
| 434 | + | |
531 | 435 | | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
568 | 449 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 57 | | |
62 | 58 | | |
63 | 59 | | |
| |||
Lines changed: 0 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 57 | | |
64 | 58 | | |
65 | 59 | | |
| |||
147 | 141 | | |
148 | 142 | | |
149 | 143 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 106 | | |
110 | 107 | | |
111 | 108 | | |
112 | 109 | | |
113 | | - | |
114 | 110 | | |
115 | 111 | | |
116 | 112 | | |
| |||
154 | 150 | | |
155 | 151 | | |
156 | 152 | | |
157 | | - | |
158 | 153 | | |
159 | 154 | | |
160 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
0 commit comments