Skip to content

Commit c61c8e0

Browse files
committed
chore(results): table 3 formatting
1 parent d75e883 commit c61c8e0

File tree

2 files changed

+29
-18
lines changed

2 files changed

+29
-18
lines changed

notebooks/04_results/01_CCU/00_model_comparison.ipynb

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -191,23 +191,36 @@
191191
"\n",
192192
"A more substantial difference is that the stage 2 code is arguably easier to understand for a new user than stage 1 code. For example, the LLM generated an `Experiment` class where each parameter used in a statistical distribution was implemented as a named variable. For example, the mean inter-arrival times all had a clear variable that could be set. Where-as in stage one code the LLM generated an `Experiment` class where inter-arrival means were set via a list of unnamed parameter values. This increased clarify resulted in more lines of code in stage 2 than stage 1; although we do not consider this a good or bad outcome. A similar difference in clarity can be seen in the code to convert the mean and standard deviation of a log normal into scale and shape parameters (suitable for the `numpy` lognormal functions). In stage 2 the logic was (optimally) implemented in a reusable function. In stage one the conversion logic is coded directly into each process and harder to follow and test. The difference in the design of the python classes representing an experiment and CCU model logic can be seen in the number of class attributes and methods in {numref}`ccu_component_comparison`.\n",
193193
"\n",
194-
"```{list-table} Description of model code components Stage 1 versus Stage 2. (stage 2 inside of brackets)\n",
195-
":header-rows: 1\n",
196-
":name: ccu_component_comparison\n",
194+
"```{list-table} Description of model code components Stage 1 versus Stage 2.\n",
195+
":header-rows: 2\n",
196+
":name: tab:ccu_code\n",
197197
"\n",
198-
"* - Component\n",
199-
" - Attributes (stage 2)\n",
200-
" - Methods/Functions (stage 2)\n",
201-
"* - **Experiment class**\n",
202-
" - 13 (27)\n",
203-
" - 3 (2)\n",
204-
"* - **CCU model logic class**\n",
205-
" - 4 (9)\n",
206-
" - 10 (12)\n",
207-
"* - **Functions**\n",
198+
"* - **Component**\n",
199+
" - **Number of Attributes**\n",
200+
" - \n",
201+
" - **Number of Methods/Functions**\n",
202+
" - \n",
203+
"* - \n",
204+
" - **Stage 1**\n",
205+
" - **Stage 2**\n",
206+
" - **Stage 1**\n",
207+
" - **Stage 2**\n",
208+
"* - `Experiment` class\n",
209+
" - 13\n",
210+
" - 27\n",
211+
" - 3\n",
212+
" - 2\n",
213+
"* - `CCU model logic` class\n",
214+
" - 4\n",
215+
" - 9\n",
216+
" - 10\n",
217+
" - 12\n",
218+
"* - Functions\n",
208219
" - N/A\n",
209-
" - 6 (6)\n",
210-
"```\n"
220+
" - N/A\n",
221+
" - 6\n",
222+
" - 6\n",
223+
"```"
211224
]
212225
},
213226
{

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"id": "73bdb0ff-3c46-4975-bc88-37fbf72a6e6a",
66
"metadata": {},
77
"source": [
8-
"# Stroke+Rehab models\n",
9-
"\n",
10-
"> This is a work in progress."
8+
"# Stroke+Rehab models"
119
]
1210
},
1311
{

0 commit comments

Comments
 (0)