Skip to content

Commit

Permalink
[ci skip] Merge pull request #79 from sylvaincom/sylvaincom-improve-doc
Browse files Browse the repository at this point in the history
fix(docs): Move button for notebooks on the side bar 7af0407
  • Loading branch information
GaelVaroquaux committed Nov 17, 2024
1 parent 5f3471d commit 0b2adfe
Show file tree
Hide file tree
Showing 27 changed files with 161 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 11145894e254ec2d620514d0d8b23438
config: 12d422e79bf5e6915db8bbbd064bf19d
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified .doctrees/auto_examples/plot_01_survival_analysis.doctree
Binary file not shown.
Binary file not shown.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion _sources/auto_examples/plot_01_survival_analysis.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ doesn't depend on the patient features.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 6.879 seconds)
**Total running time of the script:** (0 minutes 6.993 seconds)


.. _sphx_glr_download_auto_examples_plot_01_survival_analysis.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,15 @@ theoretical CIFs:

.. code-block:: none
Integrated theoretical any event survival curve in 0.643 s
SurvivalBoost fit: 2.719 s
SurvivalBoost prediction: 2.934 s
Integrated theoretical cumulative incidence curve for event 1 in 2.995 s
Aalen-Johansen for event 1 fit in 4.926 s
Integrated theoretical cumulative incidence curve for event 2 in 5.022 s
Aalen-Johansen for event 2 fit in 4.973 s
Integrated theoretical cumulative incidence curve for event 3 in 5.053 s
Aalen-Johansen for event 3 fit in 4.885 s
Integrated theoretical any event survival curve in 0.662 s
SurvivalBoost fit: 2.690 s
SurvivalBoost prediction: 2.927 s
Integrated theoretical cumulative incidence curve for event 1 in 2.988 s
Aalen-Johansen for event 1 fit in 4.937 s
Integrated theoretical cumulative incidence curve for event 2 in 5.032 s
Aalen-Johansen for event 2 fit in 5.018 s
Integrated theoretical cumulative incidence curve for event 3 in 5.096 s
Aalen-Johansen for event 3 fit in 4.976 s
Expand Down Expand Up @@ -328,15 +328,15 @@ of censoring.

.. code-block:: none
Integrated theoretical any event survival curve in 0.602 s
Integrated theoretical any event survival curve in 0.591 s
SurvivalBoost fit: 2.705 s
SurvivalBoost prediction: 2.917 s
Integrated theoretical cumulative incidence curve for event 1 in 2.978 s
Aalen-Johansen for event 1 fit in 4.898 s
Integrated theoretical cumulative incidence curve for event 2 in 4.991 s
Aalen-Johansen for event 2 fit in 4.894 s
Integrated theoretical cumulative incidence curve for event 3 in 4.973 s
Aalen-Johansen for event 3 fit in 4.898 s
SurvivalBoost prediction: 2.940 s
Integrated theoretical cumulative incidence curve for event 1 in 3.000 s
Aalen-Johansen for event 1 fit in 4.967 s
Integrated theoretical cumulative incidence curve for event 2 in 5.058 s
Aalen-Johansen for event 2 fit in 4.967 s
Integrated theoretical cumulative incidence curve for event 3 in 5.045 s
Aalen-Johansen for event 3 fit in 5.035 s
Expand All @@ -360,7 +360,7 @@ the large time horizons:

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 42.772 seconds)
**Total running time of the script:** (0 minutes 43.187 seconds)


.. _sphx_glr_download_auto_examples_plot_02_marginal_cumulative_incidence_estimation.py:
Expand Down
10 changes: 10 additions & 0 deletions _static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,13 @@ div.docutils.container.index-box {
}
}

/* Download/laucher links and top hint (sphinx-gallery) */

.sphx-glr-download-link-note,
.binder-badge,
.lite-badge,
.sphx-glr-download-jupyter,
.sphx-glr-download-python,
.sphx-glr-download-zip {
display: none;
}
2 changes: 1 addition & 1 deletion api.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<link rel="stylesheet" type="text/css" href="_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="_static/sphinx-design.min.css?v=95c83b7e" />
<link rel="stylesheet" type="text/css" href="_static/css/custom.css?v=56c72d39" />
<link rel="stylesheet" type="text/css" href="_static/css/custom.css?v=932f07db" />

<!-- So that users can add custom icons -->
<script src="_static/scripts/fontawesome.js?digest=26a4bc78f4c0ddb94549"></script>
Expand Down
28 changes: 27 additions & 1 deletion auto_examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-design.min.css?v=95c83b7e" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=56c72d39" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=932f07db" />

<!-- So that users can add custom icons -->
<script src="../_static/scripts/fontawesome.js?digest=26a4bc78f4c0ddb94549"></script>
Expand Down Expand Up @@ -434,6 +434,32 @@ <h1>Examples<a class="headerlink" href="#examples" title="Link to this heading">
</div>
</div>

<div class="sidebar-secondary-item">


<div class="sphx-glr-sidebar-component">


<div class="sphx-glr-sidebar-item sphx-glr-download-python-sidebar" title="/auto_examples/auto_examples_python.zip">
<a download href="../_downloads/07fcc19ba03226cd3d83d4e40ec44385/auto_examples_python.zip">
<i class="fa-solid fa-download"></i>
Download source code
</a>
</div>



<div class="sphx-glr-sidebar-item sphx-glr-download-jupyter-sidebar" title="/auto_examples/auto_examples_jupyter.zip">
<a download href="../_downloads/6f1e7a639e0699d6164445b55e6c116d/auto_examples_jupyter.zip">
<i class="fa-solid fa-download"></i>
Download Jupyter notebook
</a>
</div>


</div>
</div>

</div></div>


Expand Down
39 changes: 37 additions & 2 deletions auto_examples/plot_01_survival_analysis.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-design.min.css?v=95c83b7e" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=56c72d39" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=932f07db" />

<!-- So that users can add custom icons -->
<script src="../_static/scripts/fontawesome.js?digest=26a4bc78f4c0ddb94549"></script>
Expand Down Expand Up @@ -1212,7 +1212,7 @@ <h2>Survival model evaluation<a class="headerlink" href="#survival-model-evaluat
<div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span>Concordance index for SurvivalBoost: 0.67
</pre></div>
</div>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 6.879 seconds)</p>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 6.993 seconds)</p>
<div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-auto-examples-plot-01-survival-analysis-py">
<div class="sphx-glr-download sphx-glr-download-jupyter docutils container">
<p><a class="reference download internal" download="" href="../_downloads/a6916f06450964ef8d10eb5f311100d1/plot_01_survival_analysis.ipynb"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Jupyter</span> <span class="pre">notebook:</span> <span class="pre">plot_01_survival_analysis.ipynb</span></code></a></p>
Expand Down Expand Up @@ -1290,6 +1290,41 @@ <h2>Survival model evaluation<a class="headerlink" href="#survival-model-evaluat
</div>
</div>

<div class="sidebar-secondary-item">


<div class="sphx-glr-sidebar-component">


<div class="sphx-glr-sidebar-item sphx-glr-download-python-sidebar" title="plot_01_survival_analysis.py">
<a download href="../_downloads/accdde75b290e8d01376db9bd16d592c/plot_01_survival_analysis.py">
<i class="fa-solid fa-download"></i>
Download source code
</a>
</div>



<div class="sphx-glr-sidebar-item sphx-glr-download-jupyter-sidebar" title="plot_01_survival_analysis.ipynb">
<a download href="../_downloads/a6916f06450964ef8d10eb5f311100d1/plot_01_survival_analysis.ipynb">
<i class="fa-solid fa-download"></i>
Download Jupyter notebook
</a>
</div>



<div class="sphx-glr-sidebar-item sphx-glr-download-zip-sidebar" title="plot_01_survival_analysis.zip">
<a download href="../_downloads/a079d3dcf2a2ab50cd0cea38604de27d/plot_01_survival_analysis.zip">
<i class="fa-solid fa-download"></i>
Download zipped
</a>
</div>


</div>
</div>

</div></div>


Expand Down
73 changes: 54 additions & 19 deletions auto_examples/plot_02_marginal_cumulative_incidence_estimation.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-design.min.css?v=95c83b7e" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=56c72d39" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=932f07db" />

<!-- So that users can add custom icons -->
<script src="../_static/scripts/fontawesome.js?digest=26a4bc78f4c0ddb94549"></script>
Expand Down Expand Up @@ -559,15 +559,15 @@ <h2>CIFs estimated on uncensored data<a class="headerlink" href="#cifs-estimated
<span class="p">)</span>
</pre></div>
</div>
<img src="../_images/sphx_glr_plot_02_marginal_cumulative_incidence_estimation_001.png" srcset="../_images/sphx_glr_plot_02_marginal_cumulative_incidence_estimation_001.png" alt="Cause-specific cumulative incidence functions (0.0% censoring), Event 1, Event 2, Event 3" class = "sphx-glr-single-img"/><div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span>Integrated theoretical any event survival curve in 0.643 s
SurvivalBoost fit: 2.719 s
SurvivalBoost prediction: 2.934 s
Integrated theoretical cumulative incidence curve for event 1 in 2.995 s
Aalen-Johansen for event 1 fit in 4.926 s
Integrated theoretical cumulative incidence curve for event 2 in 5.022 s
Aalen-Johansen for event 2 fit in 4.973 s
Integrated theoretical cumulative incidence curve for event 3 in 5.053 s
Aalen-Johansen for event 3 fit in 4.885 s
<img src="../_images/sphx_glr_plot_02_marginal_cumulative_incidence_estimation_001.png" srcset="../_images/sphx_glr_plot_02_marginal_cumulative_incidence_estimation_001.png" alt="Cause-specific cumulative incidence functions (0.0% censoring), Event 1, Event 2, Event 3" class = "sphx-glr-single-img"/><div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span>Integrated theoretical any event survival curve in 0.662 s
SurvivalBoost fit: 2.690 s
SurvivalBoost prediction: 2.927 s
Integrated theoretical cumulative incidence curve for event 1 in 2.988 s
Aalen-Johansen for event 1 fit in 4.937 s
Integrated theoretical cumulative incidence curve for event 2 in 5.032 s
Aalen-Johansen for event 2 fit in 5.018 s
Integrated theoretical cumulative incidence curve for event 3 in 5.096 s
Aalen-Johansen for event 3 fit in 4.976 s
</pre></div>
</div>
</section>
Expand All @@ -590,15 +590,15 @@ <h2>CIFs estimated on censored data<a class="headerlink" href="#cifs-estimated-o
<span class="n">plot_cumulative_incidence_functions</span><span class="p">(</span><a href="../generated/hazardous.SurvivalBoost.html#hazardous.SurvivalBoost" title="hazardous.SurvivalBoost" class="sphx-glr-backref-module-hazardous sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">survival_boost</span></a><span class="o">=</span><a href="../generated/hazardous.SurvivalBoost.html#hazardous.SurvivalBoost" title="hazardous.SurvivalBoost" class="sphx-glr-backref-module-hazardous sphx-glr-backref-type-py-class sphx-glr-backref-instance"><span class="n">survival_boost</span></a><span class="p">,</span> <span class="n">aj</span><span class="o">=</span><span class="n">aj</span><span class="p">,</span> <span class="n">y</span><span class="o">=</span><span class="n">y_censored</span><span class="p">)</span>
</pre></div>
</div>
<img src="../_images/sphx_glr_plot_02_marginal_cumulative_incidence_estimation_002.png" srcset="../_images/sphx_glr_plot_02_marginal_cumulative_incidence_estimation_002.png" alt="Cause-specific cumulative incidence functions (40.4% censoring), Event 1, Event 2, Event 3" class = "sphx-glr-single-img"/><div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span>Integrated theoretical any event survival curve in 0.602 s
<img src="../_images/sphx_glr_plot_02_marginal_cumulative_incidence_estimation_002.png" srcset="../_images/sphx_glr_plot_02_marginal_cumulative_incidence_estimation_002.png" alt="Cause-specific cumulative incidence functions (40.4% censoring), Event 1, Event 2, Event 3" class = "sphx-glr-single-img"/><div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span>Integrated theoretical any event survival curve in 0.591 s
SurvivalBoost fit: 2.705 s
SurvivalBoost prediction: 2.917 s
Integrated theoretical cumulative incidence curve for event 1 in 2.978 s
Aalen-Johansen for event 1 fit in 4.898 s
Integrated theoretical cumulative incidence curve for event 2 in 4.991 s
Aalen-Johansen for event 2 fit in 4.894 s
Integrated theoretical cumulative incidence curve for event 3 in 4.973 s
Aalen-Johansen for event 3 fit in 4.898 s
SurvivalBoost prediction: 2.940 s
Integrated theoretical cumulative incidence curve for event 1 in 3.000 s
Aalen-Johansen for event 1 fit in 4.967 s
Integrated theoretical cumulative incidence curve for event 2 in 5.058 s
Aalen-Johansen for event 2 fit in 4.967 s
Integrated theoretical cumulative incidence curve for event 3 in 5.045 s
Aalen-Johansen for event 3 fit in 5.035 s
</pre></div>
</div>
<p>Note that the Aalen-Johansen estimator is unbiased and empirically recovers
Expand All @@ -613,7 +613,7 @@ <h2>CIFs estimated on censored data<a class="headerlink" href="#cifs-estimated-o
<p>Alternatively, we could try to enable a monotonicity constraint at training
time, however, in practice this often causes a sever over-estimation bias for
the large time horizons:</p>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 42.772 seconds)</p>
<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (0 minutes 43.187 seconds)</p>
<div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-auto-examples-plot-02-marginal-cumulative-incidence-estimation-py">
<div class="sphx-glr-download sphx-glr-download-jupyter docutils container">
<p><a class="reference download internal" download="" href="../_downloads/8da6be5df74b4f584c69dbcd5de4f948/plot_02_marginal_cumulative_incidence_estimation.ipynb"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Jupyter</span> <span class="pre">notebook:</span> <span class="pre">plot_02_marginal_cumulative_incidence_estimation.ipynb</span></code></a></p>
Expand Down Expand Up @@ -690,6 +690,41 @@ <h2>CIFs estimated on censored data<a class="headerlink" href="#cifs-estimated-o
</div>
</div>

<div class="sidebar-secondary-item">


<div class="sphx-glr-sidebar-component">


<div class="sphx-glr-sidebar-item sphx-glr-download-python-sidebar" title="plot_02_marginal_cumulative_incidence_estimation.py">
<a download href="../_downloads/07ad600aa649e25a01838605879dff29/plot_02_marginal_cumulative_incidence_estimation.py">
<i class="fa-solid fa-download"></i>
Download source code
</a>
</div>



<div class="sphx-glr-sidebar-item sphx-glr-download-jupyter-sidebar" title="plot_02_marginal_cumulative_incidence_estimation.ipynb">
<a download href="../_downloads/8da6be5df74b4f584c69dbcd5de4f948/plot_02_marginal_cumulative_incidence_estimation.ipynb">
<i class="fa-solid fa-download"></i>
Download Jupyter notebook
</a>
</div>



<div class="sphx-glr-sidebar-item sphx-glr-download-zip-sidebar" title="plot_02_marginal_cumulative_incidence_estimation.zip">
<a download href="../_downloads/28dc0b4663d142f699c8b1869d27757f/plot_02_marginal_cumulative_incidence_estimation.zip">
<i class="fa-solid fa-download"></i>
Download zipped
</a>
</div>


</div>
</div>

</div></div>


Expand Down
2 changes: 1 addition & 1 deletion downloading_seer.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<link rel="stylesheet" type="text/css" href="_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="_static/sphinx-design.min.css?v=95c83b7e" />
<link rel="stylesheet" type="text/css" href="_static/css/custom.css?v=56c72d39" />
<link rel="stylesheet" type="text/css" href="_static/css/custom.css?v=932f07db" />

<!-- So that users can add custom icons -->
<script src="_static/scripts/fontawesome.js?digest=26a4bc78f4c0ddb94549"></script>
Expand Down
2 changes: 1 addition & 1 deletion generated/hazardous.SurvivalBoost.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-design.min.css?v=95c83b7e" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=56c72d39" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=932f07db" />

<!-- So that users can add custom icons -->
<script src="../_static/scripts/fontawesome.js?digest=26a4bc78f4c0ddb94549"></script>
Expand Down
2 changes: 1 addition & 1 deletion generated/hazardous.data.load_seer.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-design.min.css?v=95c83b7e" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=56c72d39" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=932f07db" />

<!-- So that users can add custom icons -->
<script src="../_static/scripts/fontawesome.js?digest=26a4bc78f4c0ddb94549"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-design.min.css?v=95c83b7e" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=56c72d39" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=932f07db" />

<!-- So that users can add custom icons -->
<script src="../_static/scripts/fontawesome.js?digest=26a4bc78f4c0ddb94549"></script>
Expand Down
2 changes: 1 addition & 1 deletion generated/hazardous.metrics.brier_score_incidence.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-design.min.css?v=95c83b7e" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=56c72d39" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=932f07db" />

<!-- So that users can add custom icons -->
<script src="../_static/scripts/fontawesome.js?digest=26a4bc78f4c0ddb94549"></script>
Expand Down
Loading

0 comments on commit 0b2adfe

Please sign in to comment.