Skip to content

Commit 966a18f

Browse files
committed
chore(results): code table formatting
1 parent 16bdb8e commit 966a18f

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

notebooks/04_results/02_stroke/00_model_comparison.ipynb

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,26 +68,24 @@
6868
"\n",
6969
"The final code files from stage 1 and stage 2 (our internal replication) for the stroke capacity planning model have some substantial differences. The table below summarises the difference in implementation. Notable differences included an additional `PatientType` class in the stage 2 model; and a six-fold difference in the number of member attributes of the `Experiment` class. This latter result is somewhat misleading as the same number of model parameters are settable in both models. The difference is due to the stage 2 generated code making use of a different data structure (we discuss this below regarding difference in the the setup and use of models). \n",
7070
"\n",
71-
"Disregarding comments, documentation and the `streamlit` interface, stage 1 generated a `simpy` model consisting of 436 line of code and stage 2 generated 531 lines of code. Both models passed the same batch of 34 verification tests.\n",
72-
"\n",
73-
"\n",
74-
"**To-do**: discuss interface code - this is currently not included in code totals or discussion above.\n",
75-
"\n",
76-
"**To-do** Add table describing differences in classes and functions. Generated by an LLM - I think this needs checking!"
71+
"Disregarding comments, documentation and the `streamlit` interface, stage 1 generated a `simpy` model consisting of 436 line of code and stage 2 generated 531 lines of code. Both models passed the same batch of 34 verification tests.\n"
7772
]
7873
},
7974
{
8075
"cell_type": "markdown",
8176
"id": "12779a73-5c26-4713-b4a7-20db0fd795dd",
8277
"metadata": {},
8378
"source": [
84-
"| Component | Attributes Stage 1 (Stage 2)| Methods/Functions Stage 1 (Stage 2) |\n",
85-
"|------------|-----------------------------|--------------------|\n",
86-
"| Experiment class | 36(5) | 3(5) |\n",
87-
"| Patient Type class | N/A(6) | N/A(3) |\n",
88-
"| Acute Stroke Unit model logic class | 5(7) | 6(7) |\n",
89-
"| Rehabilitation Unit model logic class | 6(18) | 7(9) |\n",
90-
"| Functions (excluding classes) | N/A | 11(10) |"
79+
"\n",
80+
"| Component | Number of Attributes (Stage 1) | Number of Attributes (Stage 2) | Number of Methods/Functions (Stage 1) | Number of Methods/Functions (Stage 2) |\n",
81+
"|-----------|--------------------------------|--------------------------------|---------------------------------------|---------------------------------------|\n",
82+
"| `Experiment` class | 36 | 5 | 3 | 5 |\n",
83+
"| `PatientType` class | N/A | 6 | N/A | 3 |\n",
84+
"| `AcuteStrokeUnit` model logic class | 5 | 7 | 6 | 7 |\n",
85+
"| `RehabilitationUnit` model logic class | 6 | 18 | 7 | 9 |\n",
86+
"| Functions (excluding classes) | N/A | N/A | 11 | 10 |\n",
87+
"\n",
88+
"Table: Count of stroke capacity planning model code components comparing Stages 1 and 2."
9189
]
9290
},
9391
{

0 commit comments

Comments
 (0)