Skip to content

Commit

Permalink
Adding reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonfan1997 committed Oct 17, 2024
1 parent dbc30c2 commit dd18069
Show file tree
Hide file tree
Showing 15 changed files with 91 additions and 55 deletions.
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@
"\n",
"\n",
"Tian, J., Liu, Y.-C., Glaser, N., Hsu, Y.-C., & Kira, Z. (2020). Posterior Re-calibration for Imbalanced Datasets (No. arXiv:2010.11820). arXiv. http://arxiv.org/abs/2010.11820\n",
"\n",
"Horsch, K., Giger, M. L., & Metz, C. E. (2008). Prevalence scaling: applications to an intelligent workstation for the diagnosis of breast cancer. Academic radiology, 15(11), 1446–1457. https://doi.org/10.1016/j.acra.2008.04.022\n",
"\n"
]
}
Expand Down
Binary file modified docs/build/doctrees/notebooks/prevalence_adjustment.doctree
Binary file not shown.
8 changes: 5 additions & 3 deletions docs/build/html/_modules/calzone/metrics.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1>Source code for calzone.metrics</h1><div class="highlight"><pre>
<span class="kn">import</span> <span class="nn">statsmodels.api</span> <span class="k">as</span> <span class="nn">sm</span>
<span class="kn">import</span> <span class="nn">statsmodels.nonparametric.smoothers_lowess</span> <span class="k">as</span> <span class="nn">lowess</span>
<span class="kn">import</span> <span class="nn">numpy.lib.recfunctions</span> <span class="k">as</span> <span class="nn">rf</span>

<span class="kn">import</span> <span class="nn">contextlib</span>

<div class="viewcode-block" id="hosmer_lemeshow_test">
<a class="viewcode-back" href="../../calzone.html#calzone.metrics.hosmer_lemeshow_test">[docs]</a>
Expand Down Expand Up @@ -308,9 +308,11 @@ <h1>Source code for calzone.metrics</h1><div class="highlight"><pre>
<span class="c1"># Fit the logistic regression model</span>
<span class="n">logit_model</span> <span class="o">=</span> <span class="n">sm</span><span class="o">.</span><span class="n">Logit</span><span class="p">(</span><span class="n">y_true</span><span class="p">,</span> <span class="n">X</span><span class="p">)</span>
<span class="k">if</span> <span class="n">fix_intercept</span> <span class="o">==</span> <span class="kc">True</span><span class="p">:</span>
<span class="n">logit_result</span> <span class="o">=</span> <span class="n">logit_model</span><span class="o">.</span><span class="n">fit_constrained</span><span class="p">(</span><span class="s2">&quot;const=0&quot;</span><span class="p">,</span> <span class="n">disp</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
<span class="k">with</span> <span class="n">contextlib</span><span class="o">.</span><span class="n">redirect_stdout</span><span class="p">(</span><span class="kc">None</span><span class="p">):</span>
<span class="n">logit_result</span> <span class="o">=</span> <span class="n">logit_model</span><span class="o">.</span><span class="n">fit_constrained</span><span class="p">(</span><span class="s2">&quot;const=0&quot;</span><span class="p">,</span> <span class="n">disp</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
<span class="k">elif</span> <span class="n">fix_slope</span> <span class="o">==</span> <span class="kc">True</span><span class="p">:</span>
<span class="n">logit_result</span> <span class="o">=</span> <span class="n">logit_model</span><span class="o">.</span><span class="n">fit_constrained</span><span class="p">(</span><span class="s2">&quot;x1=1&quot;</span><span class="p">,</span> <span class="n">disp</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
<span class="k">with</span> <span class="n">contextlib</span><span class="o">.</span><span class="n">redirect_stdout</span><span class="p">(</span><span class="kc">None</span><span class="p">):</span>
<span class="n">logit_result</span> <span class="o">=</span> <span class="n">logit_model</span><span class="o">.</span><span class="n">fit_constrained</span><span class="p">(</span><span class="s2">&quot;x1=1&quot;</span><span class="p">,</span> <span class="n">disp</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">logit_result</span> <span class="o">=</span> <span class="n">logit_model</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">disp</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@
"\n",
"\n",
"Tian, J., Liu, Y.-C., Glaser, N., Hsu, Y.-C., & Kira, Z. (2020). Posterior Re-calibration for Imbalanced Datasets (No. arXiv:2010.11820). arXiv. http://arxiv.org/abs/2010.11820\n",
"\n",
"Horsch, K., Giger, M. L., & Metz, C. E. (2008). Prevalence scaling: applications to an intelligent workstation for the diagnosis of breast cancer. Academic radiology, 15(11), 1446–1457. https://doi.org/10.1016/j.acra.2008.04.022\n",
"\n"
]
}
Expand Down
1 change: 1 addition & 0 deletions docs/build/html/notebooks/prevalence_adjustment.html
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ <h2>References<a class="headerlink" href="#References" title="Link to this headi
<p>Chen, W., Sahiner, B., Samuelson, F., Pezeshk, A., &amp; Petrick, N. (2018). Calibration of medical diagnostic classifier scores to the probability of disease. Statistical Methods in Medical Research, 27(5), 1394–1409. <a class="reference external" href="https://doi.org/10.1177/0962280216661371">https://doi.org/10.1177/0962280216661371</a></p>
<p>Gu, W., &amp; Pepe, M. S. (2011). Estimating the diagnostic likelihood ratio of a continuous marker. Biostatistics, 12(1), 87–101. <a class="reference external" href="https://doi.org/10.1093/biostatistics/kxq045">https://doi.org/10.1093/biostatistics/kxq045</a></p>
<p>Tian, J., Liu, Y.-C., Glaser, N., Hsu, Y.-C., &amp; Kira, Z. (2020). Posterior Re-calibration for Imbalanced Datasets (No. arXiv:2010.11820). arXiv. http://arxiv.org/abs/2010.11820</p>
<p>Horsch, K., Giger, M. L., &amp; Metz, C. E. (2008). Prevalence scaling: applications to an intelligent workstation for the diagnosis of breast cancer. Academic radiology, 15(11), 1446–1457. <a class="reference external" href="https://doi.org/10.1016/j.acra.2008.04.022">https://doi.org/10.1016/j.acra.2008.04.022</a></p>
</section>
</section>

Expand Down
2 changes: 2 additions & 0 deletions docs/build/html/notebooks/prevalence_adjustment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@
"\n",
"\n",
"Tian, J., Liu, Y.-C., Glaser, N., Hsu, Y.-C., & Kira, Z. (2020). Posterior Re-calibration for Imbalanced Datasets (No. arXiv:2010.11820). arXiv. http://arxiv.org/abs/2010.11820\n",
"\n",
"Horsch, K., Giger, M. L., & Metz, C. E. (2008). Prevalence scaling: applications to an intelligent workstation for the diagnosis of breast cancer. Academic radiology, 15(11), 1446–1457. https://doi.org/10.1016/j.acra.2008.04.022\n",
"\n"
]
}
Expand Down
2 changes: 1 addition & 1 deletion docs/build/html/searchindex.js

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions docs/build/latex/calzone.fdb_latexmk
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Fdb version 3
["makeindex calzone.idx"] 1728323259 "calzone.idx" "calzone.ind" "calzone" 1728323263
"calzone.idx" 1728324177 7556 580e7a1735725e6c27bdde56ecb685cf "pdflatex"
["makeindex calzone.idx"] 1729172137 "calzone.idx" "calzone.ind" "calzone" 1729172140
"calzone.idx" 1729173064 7556 580e7a1735725e6c27bdde56ecb685cf "pdflatex"
(generated)
"calzone.ilg"
"calzone.ind"
["pdflatex"] 1728323261 "calzone.tex" "calzone.pdf" "calzone" 1728323263
["pdflatex"] 1729172138 "calzone.tex" "calzone.pdf" "calzone" 1729172140
"/etc/texmf/web2c/texmf.cnf" 1728063259 475 c0e671620eb5563b2130f56340a5fde8 ""
"/home/kwoklung.fan/.texlive2019/texmf-var/web2c/pdftex/pdflatex.fmt" 1728065444 8258469 f9aaee64b5629d9cdd5c82d0cd0a36eb ""
"/usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc" 1165713224 4850 80dc9bab7f31fb78a000ccfed0e27cab ""
Expand Down Expand Up @@ -174,30 +174,30 @@
"/usr/share/texmf/tex/latex/tex-gyre/tgtermes.sty" 1480098840 2211 af9b7d12507105a58a3e8e926996b827 ""
"/usr/share/texmf/tex/latex/tex-gyre/ts1qtm.fd" 1480098840 1160 de7b1cf70edab73c9f1704df2a9fdbbd ""
"/usr/share/texmf/web2c/texmf.cnf" 1581979058 38841 ce3692aa899bb693b90b87eaa5d4d84e ""
"calzone.aux" 1728324176 22211 21b4440f47eb315552a3c20237aa9f4a "pdflatex"
"calzone.ind" 1728324173 5374 7c24d43a4a21b13b2d7b0902a9618e79 "makeindex calzone.idx"
"calzone.out" 1728324177 11017 0b3b85c9fad9148defdef8b454953f20 "pdflatex"
"calzone.tex" 1728324171 260148 b04d86bb4de82a23f3c99bc712188596 ""
"calzone.toc" 1728324177 5237 4c77a122a8b1b363473f5edf5d76fa9d "pdflatex"
"calzone.aux" 1729173064 22211 21b4440f47eb315552a3c20237aa9f4a "pdflatex"
"calzone.ind" 1729173060 5374 7c24d43a4a21b13b2d7b0902a9618e79 "makeindex calzone.idx"
"calzone.out" 1729173064 11017 0b3b85c9fad9148defdef8b454953f20 "pdflatex"
"calzone.tex" 1729173058 260421 30271436cf0eb7c3b0c8b43dc73aae5a ""
"calzone.toc" 1729173064 5237 4c77a122a8b1b363473f5edf5d76fa9d "pdflatex"
"mytable.png" 1727877915 716184 0235eb86d9c3d9d8be3cd26a9ca00db9 ""
"nbsphinx.sty" 1723612157 8202 a429e7504022e861d9f81e9a64e9928d ""
"notebooks_ece_mce_12_1.png" 1728324168 55390 1a16cfda687f702d53b1653f869e18ca ""
"notebooks_hl_test_13_1.png" 1728324168 21799 b95978db8e70a26596193ce74b909cd8 ""
"notebooks_hl_test_14_1.png" 1728324168 21843 d147f5f8c65154f77466ca9f2e92235a ""
"notebooks_ici_8_1.png" 1728324168 43328 2354d7edb62b8a1f369fcba69d425870 ""
"notebooks_quickstart_16_1.png" 1728324169 39928 4117abd19af3b57bc8e66a51a57c56f8 ""
"notebooks_quickstart_18_1.png" 1728324169 42921 ee3df6891a29f399f164d5e55f05e6ec ""
"notebooks_quickstart_20_1.png" 1728324169 42127 7de1ea85f325862a865034006d735614 ""
"notebooks_quickstart_20_3.png" 1728324169 42854 005a6f616efd03d978c3cb107a73a066 ""
"notebooks_quickstart_20_5.png" 1728324169 44619 432e67878b412c5e06e1dcc821ed903c ""
"notebooks_reliability_diagram_3_0.png" 1728324169 40555 7f21493f44d7ea51f3eb7d2e560d4f0b ""
"notebooks_reliability_diagram_5_0.png" 1728324169 47576 38437d3c4064586dc155be2ef6c8735b ""
"notebooks_reliability_diagram_8_0.png" 1728324169 40689 0cb4ca8d3c4b37c78e0a871a292c915f ""
"notebooks_reliability_diagram_9_0.png" 1728324169 60864 f866db6032833e6af5b14aa39a869dde ""
"notebooks_spiegelhalter_z_9_1.png" 1728324170 22199 c90489bd51b52e777b195f116cce338b ""
"notebooks_topclass_2_0.png" 1728324170 40555 7f21493f44d7ea51f3eb7d2e560d4f0b ""
"notebooks_ece_mce_12_1.png" 1729173055 55390 1a16cfda687f702d53b1653f869e18ca ""
"notebooks_hl_test_13_1.png" 1729173055 21799 b95978db8e70a26596193ce74b909cd8 ""
"notebooks_hl_test_14_1.png" 1729173055 21843 d147f5f8c65154f77466ca9f2e92235a ""
"notebooks_ici_8_1.png" 1729173056 43328 2354d7edb62b8a1f369fcba69d425870 ""
"notebooks_quickstart_16_1.png" 1729173056 39928 4117abd19af3b57bc8e66a51a57c56f8 ""
"notebooks_quickstart_18_1.png" 1729173056 42921 ee3df6891a29f399f164d5e55f05e6ec ""
"notebooks_quickstart_20_1.png" 1729173056 42127 7de1ea85f325862a865034006d735614 ""
"notebooks_quickstart_20_3.png" 1729173056 42854 005a6f616efd03d978c3cb107a73a066 ""
"notebooks_quickstart_20_5.png" 1729173056 44619 432e67878b412c5e06e1dcc821ed903c ""
"notebooks_reliability_diagram_3_0.png" 1729173057 40555 7f21493f44d7ea51f3eb7d2e560d4f0b ""
"notebooks_reliability_diagram_5_0.png" 1729173057 47576 38437d3c4064586dc155be2ef6c8735b ""
"notebooks_reliability_diagram_8_0.png" 1729173057 40689 0cb4ca8d3c4b37c78e0a871a292c915f ""
"notebooks_reliability_diagram_9_0.png" 1729173057 60864 f866db6032833e6af5b14aa39a869dde ""
"notebooks_spiegelhalter_z_9_1.png" 1729173057 22199 c90489bd51b52e777b195f116cce338b ""
"notebooks_topclass_2_0.png" 1729173057 40555 7f21493f44d7ea51f3eb7d2e560d4f0b ""
"sphinx.sty" 1727458774 50659 6d393be3f369a7862f0b19a359f1ab89 ""
"sphinxhighlight.sty" 1728324170 7553 83fb52292c17957d9f4aadcb28c57a87 ""
"sphinxhighlight.sty" 1729173057 7553 83fb52292c17957d9f4aadcb28c57a87 ""
"sphinxlatexadmonitions.sty" 1727458774 18222 f3bfd316b630ed188fcc20bf320acafe ""
"sphinxlatexcontainers.sty" 1727458774 901 d3a3a1b7b2547f47ade2499350b5c420 ""
"sphinxlatexgraphics.sty" 1727458774 4840 a9578332b6f3b35e198751fb632c9b79 ""
Expand All @@ -212,15 +212,15 @@
"sphinxlatexstyletext.sty" 1727458774 6881 543f3cecccc7dccac396b5720cccf443 ""
"sphinxlatextables.sty" 1727458774 57644 2253ce149b29042948a000d2dbf50b50 ""
"sphinxmanual.cls" 1727458774 4241 7b0d7a37df7b5715fb0dbd585c52ecdb ""
"sphinxmessages.sty" 1728324171 745 3f5fcd6cdd7964ed608767954a8ced6f ""
"sphinxmessages.sty" 1729173058 745 3f5fcd6cdd7964ed608767954a8ced6f ""
"sphinxoptionsgeometry.sty" 1727458774 2061 47bb34b8ed8a78823eb0c886abfb9f4d ""
"sphinxoptionshyperref.sty" 1727458774 1094 79beb8b8a3f10784f8cce804e0f9d3aa ""
"sphinxpackageboxes.sty" 1727458774 36106 1be2053eb1cb9b083b3a75e3657bcb24 ""
"sphinxpackagefootnote.sty" 1727458774 15330 2fb656b6ce8cd1f6aba2d1c508fb51e5 ""
(generated)
"calzone.out"
"calzone.log"
"calzone.aux"
"calzone.idx"
"calzone.pdf"
"calzone.toc"
"calzone.pdf"
"calzone.idx"
"calzone.aux"
"calzone.log"
"calzone.out"
38 changes: 19 additions & 19 deletions docs/build/latex/calzone.log
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex 2024.10.4) 7 OCT 2024 13:47
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex 2024.10.4) 17 OCT 2024 09:35
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
Expand Down Expand Up @@ -1083,34 +1083,34 @@ Chapter 9.
] [50] [51] [52]
Chapter 10.

Overfull \vbox (0.92192pt too high) detected at line 3041
Overfull \vbox (0.92192pt too high) detected at line 3044
[]

[53

] [54]
Underfull \vbox (badness 10000) detected at line 3149
Underfull \vbox (badness 10000) detected at line 3152
[]


Overfull \vbox (3.52196pt too high) detected at line 3149
Overfull \vbox (3.52196pt too high) detected at line 3152
[]

[55] [56]
Chapter 11.
<notebooks_topclass_2_0.png, id=620, 507.3354pt x 393.8715pt>
<notebooks_topclass_2_0.png, id=621, 507.3354pt x 393.8715pt>
File: notebooks_topclass_2_0.png Graphic file (type png)
<use notebooks_topclass_2_0.png>
Package pdftex.def Info: notebooks_topclass_2_0.png used on input line 3217.
Package pdftex.def Info: notebooks_topclass_2_0.png used on input line 3220.
(pdftex.def) Requested size: 469.77333pt x 364.72809pt.

Underfull \vbox (badness 10000) detected at line 3221
Underfull \vbox (badness 10000) detected at line 3224
[]

[57

]
Underfull \vbox (badness 10000) detected at line 3269
Underfull \vbox (badness 10000) detected at line 3272
[]

[58 <./notebooks_topclass_2_0.png>] [59] [60
Expand All @@ -1126,14 +1126,14 @@ LaTeX Font Info: Font shape `TS1/txtt/m/it' in size <10> not available
(Font) Font shape `TS1/txtt/m/sl' tried instead on input line 1.
[64]
LaTeX Font Info: Trying to load font information for U+fontawesomefree1 on i
nput line 3589.
nput line 3592.

(/usr/share/texlive/texmf-dist/tex/latex/fontawesome5/ufontawesomefree1.fd)
Overfull \vbox (0.52995pt too high) detected at line 3652
Overfull \vbox (0.52995pt too high) detected at line 3655
[]

[65] [66] [67] [68] [69] [70]
Overfull \hbox (73.01103pt too wide) in paragraph at lines 4368--4372
Overfull \hbox (73.01103pt too wide) in paragraph at lines 4371--4375
[]\T1/qtm/m/n/10 Note: - If there is a header, it must be in the for-mat: proba
_0,proba_1,...,subgroup_1(optional),subgroup_2(optional),...,label
[]
Expand Down Expand Up @@ -1261,15 +1261,15 @@ Underfull \hbox (badness 10000) in paragraph at lines 116--118
[80

])
Package atveryend Info: Empty hook `BeforeClearDocument' on input line 5016.
Package atveryend Info: Empty hook `AfterLastShipout' on input line 5016.
Package atveryend Info: Empty hook `BeforeClearDocument' on input line 5019.
Package atveryend Info: Empty hook `AfterLastShipout' on input line 5019.
(./calzone.aux)
Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 5016.
Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 5016.
Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 5019.
Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 5019.

Package rerunfilecheck Info: File `calzone.out' has not changed.
(rerunfilecheck) Checksum: 0B3B85C9FAD9148DEFDEF8B454953F20;11017.
Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 5016.
Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 5019.
)
Here is how much of TeX's memory you used:
18988 strings out of 481239
Expand Down Expand Up @@ -1302,10 +1302,10 @@ fonts/type1/public/tex-gyre/qtmri.pfb></usr/share/texlive/texmf-dist/fonts/type
xfonts/t1xtt.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/txfonts/t1xt
t.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/txfonts/tcxtt.pfb></usr
/share/texlive/texmf-dist/fonts/type1/urw/times/utmr8a.pfb>
Output written on calzone.pdf (84 pages, 1434923 bytes).
Output written on calzone.pdf (84 pages, 1435181 bytes).
PDF statistics:
952 PDF objects out of 1000 (max. 8388607)
798 compressed objects within 8 object streams
953 PDF objects out of 1000 (max. 8388607)
799 compressed objects within 8 object streams
190 named destinations out of 1000 (max. 500000)
581 words of extra memory for PDF output out of 10000 (max. 10000000)

Binary file modified docs/build/latex/calzone.pdf
Binary file not shown.
5 changes: 4 additions & 1 deletion docs/build/latex/calzone.tex
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@


\title{calzone}
\date{Oct 07, 2024}
\date{Oct 17, 2024}
\release{develop}
\author{Kwok Lung "Jason" Fan, Qian Cao}
\newcommand{\sphinxlogo}{\vbox{}}
Expand Down Expand Up @@ -2900,6 +2900,9 @@ \section{References}
\sphinxAtStartPar
Tian, J., Liu, Y.\sphinxhyphen{}C., Glaser, N., Hsu, Y.\sphinxhyphen{}C., \& Kira, Z. (2020). Posterior Re\sphinxhyphen{}calibration for Imbalanced Datasets (No. arXiv:2010.11820). arXiv. http://arxiv.org/abs/2010.11820

\sphinxAtStartPar
Horsch, K., Giger, M. L., \& Metz, C. E. (2008). Prevalence scaling: applications to an intelligent workstation for the diagnosis of breast cancer. Academic radiology, 15(11), 1446\textendash{}1457. \sphinxurl{https://doi.org/10.1016/j.acra.2008.04.022}

\sphinxstepscope


Expand Down
2 changes: 2 additions & 0 deletions docs/source/notebooks/prevalence_adjustment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@
"\n",
"\n",
"Tian, J., Liu, Y.-C., Glaser, N., Hsu, Y.-C., & Kira, Z. (2020). Posterior Re-calibration for Imbalanced Datasets (No. arXiv:2010.11820). arXiv. http://arxiv.org/abs/2010.11820\n",
"\n",
"Horsch, K., Giger, M. L., & Metz, C. E. (2008). Prevalence scaling: applications to an intelligent workstation for the diagnosis of breast cancer. Academic radiology, 15(11), 1446–1457. https://doi.org/10.1016/j.acra.2008.04.022\n",
"\n"
]
}
Expand Down
Loading

0 comments on commit dd18069

Please sign in to comment.