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
+4 -3
View File
@@ -68,10 +68,11 @@ def raws(tmp_path_factory) -> dict[str, pd.DataFrame]:
drawn.write_text(PIPELINE.read_text().replace("{reference}", str(RAW)))
platform.save("pipelines", "cama_reference", drawn)
platform.ingest("cama_reference")
# What the training job reads (models.cama.specs), from that platform.
# Each cohort's rows as the pipeline loaded them (one source node per cohort).
out = folder / "datasets.pkl"
platform.run("python", "-c", "import pandas as pd; from models.cama.specs import MODELS; "
f"pd.to_pickle(MODELS['recurrence'].datasets(), {str(out)!r})") # fmt: skip
platform.run("python", "-c", "import pandas as pd; from persistance import nodes; "
"from models.cama import recurrence; pd.to_pickle({s: pd.DataFrame(nodes.rows("
f"'cama_reference', s)) for s in recurrence.SOURCES}}, {str(out)!r})") # fmt: skip
return pd.read_pickle(out)