Skip to content

Commit

Permalink
add output for all cells
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasSchmidtblaicherQC committed Nov 1, 2024
1 parent e721388 commit e9260c5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions docs/tutorials/cox_model/cox_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
" </tr>\n",
" <tr>\n",
" <th>time fit was run</th>\n",
" <td>2024-11-01 18:38:45 UTC</td>\n",
" <td>2024-11-01 19:22:33 UTC</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
Expand Down Expand Up @@ -481,7 +481,7 @@
" number of observations = 432\n",
"number of events observed = 114\n",
" partial log-likelihood = -656.25\n",
" time fit was run = 2024-11-01 18:38:45 UTC\n",
" time fit was run = 2024-11-01 19:22:33 UTC\n",
"\n",
"---\n",
" coef exp(coef) se(coef) coef lower 95% coef upper 95% exp(coef) lower 95% exp(coef) upper 95%\n",
Expand Down Expand Up @@ -819,7 +819,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"30.8 ms ± 492 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
"32.8 ms ± 3.79 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
Expand All @@ -831,7 +831,15 @@
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"18 ms ± 73.4 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n"
]
}
],
"source": [
"%timeit model_glum = glum.GeneralizedLinearRegressor(family=\"poisson\",formula=\"arrest ~ fin + bs(age, df=4) + race + wexp + mar + paro + bs(prio,df=3) + C(week)\").fit(survival_split(df, 'week', 'arrest'))"
]
Expand Down

0 comments on commit e9260c5

Please sign in to comment.