update at 2026-10-12 16:53:40
网站v8修复(时序竞态+M3表格) + exp06 SNR×窗口扫描 + README里程碑更新
This commit is contained in:
@@ -57,10 +57,10 @@ def cmd_design(args):
|
||||
|
||||
|
||||
def cmd_all(args):
|
||||
"""M5:一键运行全部实验(M0–M4)并汇总记录包。"""
|
||||
"""M5:一键运行全部实验(M0–M4 + M4 扫描)并汇总记录包。"""
|
||||
from .experiments import (exp01_m0_baseline, exp02_fiber_design,
|
||||
exp03_m2_calibration, exp04_m3_algorithms,
|
||||
exp05_m4_statistics)
|
||||
exp05_m4_statistics, exp06_m4_scan)
|
||||
dirs = []
|
||||
print("=" * 60)
|
||||
print("M0 最小程序")
|
||||
@@ -80,6 +80,9 @@ def cmd_all(args):
|
||||
print("=" * 60)
|
||||
print("M4 统计分析")
|
||||
dirs.append(exp05_m4_statistics.run(repeats=args.repeats, runs_dir=args.runs_dir))
|
||||
print("=" * 60)
|
||||
print("M4 补充:SNR×窗口 参数扫描")
|
||||
dirs.append(exp06_m4_scan.run(repeats=min(args.repeats, 40), runs_dir=args.runs_dir))
|
||||
print("\n全部完成,记录包:")
|
||||
for d in dirs:
|
||||
print(f" - {d}")
|
||||
@@ -88,10 +91,10 @@ def cmd_all(args):
|
||||
def cmd_run_one(args):
|
||||
from .experiments import (exp01_m0_baseline, exp02_fiber_design,
|
||||
exp03_m2_calibration, exp04_m3_algorithms,
|
||||
exp05_m4_statistics)
|
||||
exp05_m4_statistics, exp06_m4_scan)
|
||||
table = {"m0": exp01_m0_baseline.run, "m1": exp02_fiber_design.run,
|
||||
"m2": exp03_m2_calibration.run, "m3": exp04_m3_algorithms.run,
|
||||
"m4": exp05_m4_statistics.run}
|
||||
"m4": exp05_m4_statistics.run, "scan": exp06_m4_scan.run}
|
||||
if args.which not in table:
|
||||
print(f"未知实验 {args.which},可选:{list(table)}")
|
||||
return
|
||||
@@ -107,6 +110,8 @@ def cmd_run_one(args):
|
||||
table["m3"](seeds=args.seeds, runs_dir=args.runs_dir)
|
||||
elif args.which == "m4":
|
||||
table["m4"](repeats=args.repeats, runs_dir=args.runs_dir)
|
||||
elif args.which == "scan":
|
||||
table["scan"](repeats=min(args.repeats, 40), runs_dir=args.runs_dir)
|
||||
|
||||
|
||||
def main(argv=None):
|
||||
@@ -135,8 +140,8 @@ def main(argv=None):
|
||||
p1.add_argument("--runs-dir", default="runs")
|
||||
p1.set_defaults(func=cmd_design)
|
||||
|
||||
p2 = sub.add_parser("run", help="运行单个实验:m0/m1/m2/m3/m4")
|
||||
p2.add_argument("which", choices=["m0", "m1", "m2", "m3", "m4"])
|
||||
p2 = sub.add_parser("run", help="运行单个实验:m0/m1/m2/m3/m4/scan")
|
||||
p2.add_argument("which", choices=["m0", "m1", "m2", "m3", "m4", "scan"])
|
||||
p2.add_argument("--tau", type=float, default=52.8)
|
||||
p2.add_argument("--window-ns", type=float, default=400.0)
|
||||
p2.add_argument("--snr-db", type=float, default=50.0)
|
||||
|
||||
Reference in New Issue
Block a user