|
68 | 68 | "\n", |
69 | 69 | "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", |
70 | 70 | "\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" |
77 | 72 | ] |
78 | 73 | }, |
79 | 74 | { |
80 | 75 | "cell_type": "markdown", |
81 | 76 | "id": "12779a73-5c26-4713-b4a7-20db0fd795dd", |
82 | 77 | "metadata": {}, |
83 | 78 | "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." |
91 | 89 | ] |
92 | 90 | }, |
93 | 91 | { |
|
0 commit comments