File size: 2,019 Bytes
6f50ff9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""
Generate a single 'command center' markdown with all high-value commands.
"""
from pathlib import Path
from datetime import datetime, timezone

SECTIONS = {
    "Data & Training": [
        "python src/check_data.py",
        "python src/train.py",
        "python src/deep_baseline.py",
    ],
    "Evaluation": [
        "python src/benchmark.py",
        "python src/cross_dataset_eval.py --train dataset_a --test dataset_b",
        "python src/cross_dataset_matrix.py",
        "python src/calibration_eval.py",
        "python src/robustness_eval.py",
        "python src/ablation_eval.py",
    ],
    "Visualization": [
        "python src/plot_results.py",
        "python src/plot_all_models.py",
        "python src/plot_cross_matrix.py",
        "python src/plot_calibration.py",
        "python src/plot_robustness.py",
        "python src/plot_ablation.py",
    ],
    "Explainability": [
        "python src/explainability.py",
        "python src/permutation_explain.py",
    ],
    "Docs & Release": [
        "python src/build_report.py",
        "python src/release_readiness.py",
        "python src/hf_space_readiness.py",
        "python src/leaderboard.py",
        "python src/generate_figure_gallery.py",
        "python src/changelog_from_git.py",
        "python src/generate_release_pack.py",
        "python src/generate_model_card.py",
        "python src/update_docs_bundle.py",
        "python src/generate_status_badges.py",
    ],
    "One-command": [
        "python src/run_full_pipeline.py",
        "make full",
    ],
}


def main():
    ts = datetime.now(timezone.utc).strftime('%Y-%m-%d %H:%M UTC')
    lines = ['# BCI MVP Command Center', '', f'Generated: {ts}', '']
    for sec, cmds in SECTIONS.items():
        lines += [f'## {sec}', '']
        lines += [f'- `{c}`' for c in cmds]
        lines += ['']

    out = Path('docs/COMMAND_CENTER.md')
    out.write_text('\n'.join(lines), encoding='utf-8')
    print(f'Generated {out}')


if __name__ == '__main__':
    main()