From 43207fa3a5e2e7e44c0326ee4d34bf031d301ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Trevi=C3=B1o?= Date: Sun, 29 Nov 2026 06:43:08 -0600 Subject: [PATCH] Scoring runs every champion, slow models too --- models/definitions.py | 2 +- models/jobs.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/models/definitions.py b/models/definitions.py index abdfba3..d98d810 100644 --- a/models/definitions.py +++ b/models/definitions.py @@ -76,7 +76,7 @@ class Scoring(dg.Config): def score_models(context: dg.OpExecutionContext, config: Scoring) -> dict: """Each model's champion scores its cohort; then gold's risk tables are rebuilt.""" jobs = _jobs(config.domain) - found = {name: jobs.score(name) for name in config.models or jobs.JOBS.routine()} + found = {name: jobs.score(name) for name in config.models or jobs.JOBS.models} for name, version in found.items(): context.log.info(f"{name}: " + (f"version {version}" if version else "no champion")) silver.build([getattr(jobs, "GOLD", f"{config.domain}_risk") + "+"]) diff --git a/models/jobs.py b/models/jobs.py index aecad87..72a2da2 100644 --- a/models/jobs.py +++ b/models/jobs.py @@ -41,7 +41,8 @@ class Jobs: return f"{self.domain}_events" def routine(self) -> list[str]: - """The models a train or score run takes when none is named: all but the slow ones.""" + """The models a train run takes when none is named: all but the slow ones (a score + run takes them all: only training is slow).""" return [n for n, s in self.models.items() if not getattr(s, "slow", False)] def registered(self, name: str) -> str: