LiveHouse-TS / scripts /build_live_aggregate_results.py
ziyuzhou02's picture
Deploy GitHub main 3feb6cda1511
e317359 verified
Raw History Blame Contribute Delete
826 Bytes
#!/usr/bin/env python3
"""Build cumulative live metrics and rank tables from saved releases."""
from __future__ import annotations
import argparse
from pathlib import Path
import sys
REPO_ROOT = Path(__file__).resolve().parents[1]
SRC_DIR = REPO_ROOT / "src"
if str(SRC_DIR) not in sys.path:
sys.path.insert(0, str(SRC_DIR))
from tsfm_bench.eval.live_aggregation import write_live_aggregates
def parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--results", type=Path, default=Path("space/results"))
return parser.parse_args()
def main() -> int:
args = parse_args()
for name, path in write_live_aggregates(args.results).items():
print(f"{name}: {path}")
return 0
if __name__ == "__main__":
raise SystemExit(main())