Every model trains on the site: EEG age curves on the children with TEA ruled out, recurrence on the site's patients (St. Gallen subtype), and the EEG–ADOS-2 association

This commit is contained in:
Roberto Treviño
2026-11-28 21:28:36 -06:00
parent 924f662a21
commit 53e6f77c9e
10 changed files with 700 additions and 81 deletions
+2 -1
View File
@@ -21,7 +21,7 @@ RESAMPLES = 200
MIN_EVENTS = 15 # a scenario is drawn when it has this many recurrences
CAP_MONTHS = 72 # the Weibull curves' extent
GRID_POINTS = 289 # 0 to CAP_MONTHS by quarter months
LABELS = {"metabric": "METABRIC", "scanb": "SCAN-B"}
LABELS = {"metabric": "METABRIC", "scanb": "SCAN-B", "site": "Sitio"}
# Each scenario: covariate -> the categories it takes (AND across covariates).
SCENARIOS = {
@@ -59,6 +59,7 @@ SCENARIOS = {
"Grado 3": {"Grado_histologico": ["3"]},
},
} # fmt: skip
SCENARIOS["site"] = SCENARIOS["scanb"] # the site's cohort is described as SCAN-B's
def masks(frame: pd.DataFrame, scenarios: dict) -> dict[str, np.ndarray]: