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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user