Skip to content

Commit

Permalink
Include example responses in survival analysis tutorials.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnor-sigurdsson committed Dec 27, 2024
1 parent 2208b62 commit 651e1d3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/tutorials/h_survival_analysis/01_survival_flchain.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ Here's how to send requests to the model:
:language: python
:caption: Python request example

Here is an example of the response:

.. literalinclude:: ../tutorial_files/h_survival_analysis/01_flchain/request_example/python_request_example.json
:language: json
:caption: Survival response example

Survival Analysis by Age Groups
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ Here's an example of sending requests to the model:
Note that unlike the discrete-time model, this model returns risk scores that are then
converted to survival probabilities using the baseline hazard function.

Here is an example of the response:

.. literalinclude:: ../tutorial_files/h_survival_analysis/02_flchain_cox/request_example/python_request_example.json
:language: json
:caption: Survival response example

Survival Analysis by Patient Characteristics
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit 651e1d3

Please sign in to comment.