Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ECREAM/ecream_analysis_1_door_to_doctor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,11 @@
" return aucs\n",
"\n",
"\n",
"def saved_experiments():\n",
" \"\"\"The experiments saved from the web interface (My experiments), as the platform lists them.\"\"\"\n",
" items = client.experiments().list()\n",
"def saved_analyses():\n",
" \"\"\"The analyses saved from the web interface (My analyses), as the platform lists them.\"\"\"\n",
" items = client.analyses().list()\n",
" if not items:\n",
" print(\"No saved experiment is listed (nothing saved yet, or the registry answers differently on this platform).\")\n",
" print(\"No saved analysis is listed (nothing saved yet, or the registry answers differently on this platform).\")\n",
" return pd.DataFrame()\n",
" return pd.DataFrame(items)\n",
"\n",
Expand Down Expand Up @@ -514,7 +514,7 @@
"> long waits of one TLoC patient in seven. Synthetic data, real workflow: the result was\n",
"> computed on the federation without any record leaving its dataset.\n",
"\n",
"In the web interface the demo ends with **Save experiment**; the notebook can list what was\n",
"In the web interface the demo ends with **Save analysis**; the notebook can list what was\n",
"saved there."
]
},
Expand All @@ -525,7 +525,7 @@
"metadata": {},
"outputs": [],
"source": [
"display(saved_experiments())"
"display(saved_analyses())"
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions ECREAM/ecream_analysis_2_sex_and_age_by_cohort.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,11 @@
" return aucs\n",
"\n",
"\n",
"def saved_experiments():\n",
" \"\"\"The experiments saved from the web interface (My experiments), as the platform lists them.\"\"\"\n",
" items = client.experiments().list()\n",
"def saved_analyses():\n",
" \"\"\"The analyses saved from the web interface (My analyses), as the platform lists them.\"\"\"\n",
" items = client.analyses().list()\n",
" if not items:\n",
" print(\"No saved experiment is listed (nothing saved yet, or the registry answers differently on this platform).\")\n",
" print(\"No saved analysis is listed (nothing saved yet, or the registry answers differently on this platform).\")\n",
" return pd.DataFrame()\n",
" return pd.DataFrame(items)\n",
"\n",
Expand Down
10 changes: 5 additions & 5 deletions ECREAM/ecream_analysis_3_mortality_negative_control.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,11 @@
" return aucs\n",
"\n",
"\n",
"def saved_experiments():\n",
" \"\"\"The experiments saved from the web interface (My experiments), as the platform lists them.\"\"\"\n",
" items = client.experiments().list()\n",
"def saved_analyses():\n",
" \"\"\"The analyses saved from the web interface (My analyses), as the platform lists them.\"\"\"\n",
" items = client.analyses().list()\n",
" if not items:\n",
" print(\"No saved experiment is listed (nothing saved yet, or the registry answers differently on this platform).\")\n",
" print(\"No saved analysis is listed (nothing saved yet, or the registry answers differently on this platform).\")\n",
" return pd.DataFrame()\n",
" return pd.DataFrame(items)\n",
"\n",
Expand Down Expand Up @@ -584,7 +584,7 @@
"> not predict death (all odds ratios 1.0; cross-validated area under the ROC curve near 0.5). This\n",
"> is expected: the synthetic generator resampled the demographic, vital-sign and follow-up\n",
"> blocks independently, so no association across blocks exists in these data. The platform\n",
"> found nothing because there was nothing to find; on real data the same experiment is\n",
"> found nothing because there was nothing to find; on real data the same analysis is\n",
"> expected to show age and hypoxaemia as predictors.\n",
"\n",
"## What happens without the filter on sex\n",
Expand Down
12 changes: 6 additions & 6 deletions ECREAM/ecream_live_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"source": [
"# The eCREAM federation in ten minutes: the live demo as a notebook\n",
"\n",
"_The five screens of the web-interface demo and the optional third experiment, as federated\n",
"_The five screens of the web-interface demo and the optional third analysis, as federated\n",
"calls with the `mip` client. Both synthetic datasets, 5,000 subjects each; no real patient data.\n",
"Detail, expected results and interpretation: `docs/teaching_scenarios/` and the three analysis\n",
"notebooks next to this one._\n",
Expand Down Expand Up @@ -166,10 +166,10 @@
"id": "1f36a81b",
"metadata": {},
"source": [
"## 5. Save the experiment\n",
"## 5. Save the analysis\n",
"\n",
"In the web interface the demo ends with **Save experiment**: a named, re-openable, shareable\n",
"object in My experiments. The notebook can list what was saved."
"object in My analyses. The notebook can list what was saved."
]
},
{
Expand All @@ -179,16 +179,16 @@
"metadata": {},
"outputs": [],
"source": [
"saved = client.experiments().list()\n",
"display(pd.DataFrame(saved) if saved else \"No saved experiment is listed yet.\")"
"saved = client.analyses().list()\n",
"display(pd.DataFrame(saved) if saved else \"No saved analysis is listed yet.\")"
]
},
{
"cell_type": "markdown",
"id": "6e2c5c22",
"metadata": {},
"source": [
"## Optional third experiment: a model that must find nothing\n",
"## Optional third analysis: a model that must find nothing\n",
"\n",
"30-day mortality on age, sex and oxygen saturation, with cross-validation. *Expected:* an area\n",
"under the ROC curve near 0.5, because the synthetic generator resampled the demographic,\n",
Expand Down
4 changes: 2 additions & 2 deletions IST/ist_scenario_5_survival.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@
"\n",
"*Expected:* women versus men 1.30 (1.23 to 1.39) with sex alone, 1.00 (0.94 to 1.06) once age is\n",
"added, 0.92 (0.86 to 0.98) with all four. The women's excess deaths disappear as soon as the\n",
"model compares women and men of the same age. In the MIP interface, keep the experiment and\n",
"change only the predictors: atrial fibrillation stays in the experiment, so preprocessing keeps\n",
"model compares women and men of the same age. In the MIP interface, keep the analysis and\n",
"change only the predictors: atrial fibrillation stays in the analysis, so preprocessing keeps\n",
"the same patients and the numbers are the same."
]
},
Expand Down
9 changes: 1 addition & 8 deletions algorithm_examples.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
MIP Pipeline — full stack examples (30 algorithms + preprocessing).
MIP Pipeline — full stack examples (29 algorithms + preprocessing).

Run from the Jupyter workspace root:
python examples/algorithm_examples.py
Expand Down Expand Up @@ -375,13 +375,6 @@ def run_ml(ctx: dict[str, Any]) -> None:

run_step("kmeans", lambda: p.kmeans(features=[age, nihss_adm, nihss_24h], k=3))
run_step("pca", lambda: p.pca(variables=[age, nihss_adm, nihss_24h]))
run_step(
"pca_with_transformation",
lambda: p.pca_with_transformation(
variables=[age, nihss_adm, nihss_24h],
data_transformation={"center": [age, nihss_adm, nihss_24h]},
),
)
run_step(
"naive_bayes_gaussian",
lambda: p.naive_bayes_gaussian(features=[age, nihss_adm], target=sex),
Expand Down
Loading