Skip to content

Commit 702debc

Browse files
committed
[Reliability Bayesian pymc-devs#474] updated precommit checks and improved plots.
Signed-off-by: Nathaniel <[email protected]>
1 parent 7c12cd2 commit 702debc

File tree

1 file changed

+1
-80
lines changed

1 file changed

+1
-80
lines changed

examples/case_studies/reliability_and_calibration.ipynb

+1-80
Original file line numberDiff line numberDiff line change
@@ -3616,86 +3616,7 @@
36163616
},
36173617
{
36183618
"data": {
3619-
"image/svg+xml": [
3620-
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
3621-
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
3622-
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
3623-
"<!-- Generated by graphviz version 2.50.0 (0)\n",
3624-
" -->\n",
3625-
"<!-- Pages: 1 -->\n",
3626-
"<svg width=\"305pt\" height=\"239pt\"\n",
3627-
" viewBox=\"0.00 0.00 304.90 239.08\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
3628-
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 235.08)\">\n",
3629-
"<polygon fill=\"white\" stroke=\"transparent\" points=\"-4,4 -4,-235.08 300.9,-235.08 300.9,4 -4,4\"/>\n",
3630-
"<g id=\"clust1\" class=\"cluster\">\n",
3631-
"<title>cluster6</title>\n",
3632-
"<path fill=\"none\" stroke=\"black\" d=\"M20,-11.09C20,-11.09 132,-11.09 132,-11.09 138,-11.09 144,-17.09 144,-23.09 144,-23.09 144,-113.04 144,-113.04 144,-119.04 138,-125.04 132,-125.04 132,-125.04 20,-125.04 20,-125.04 14,-125.04 8,-119.04 8,-113.04 8,-113.04 8,-23.09 8,-23.09 8,-17.09 14,-11.09 20,-11.09\"/>\n",
3633-
"<text text-anchor=\"middle\" x=\"132.5\" y=\"-18.89\" font-family=\"Times,serif\" font-size=\"14.00\">6</text>\n",
3634-
"</g>\n",
3635-
"<g id=\"clust2\" class=\"cluster\">\n",
3636-
"<title>cluster1697</title>\n",
3637-
"<path fill=\"none\" stroke=\"black\" d=\"M168,-8C168,-8 260,-8 260,-8 266,-8 272,-14 272,-20 272,-20 272,-116.13 272,-116.13 272,-122.13 266,-128.13 260,-128.13 260,-128.13 168,-128.13 168,-128.13 162,-128.13 156,-122.13 156,-116.13 156,-116.13 156,-20 156,-20 156,-14 162,-8 168,-8\"/>\n",
3638-
"<text text-anchor=\"middle\" x=\"250\" y=\"-15.8\" font-family=\"Times,serif\" font-size=\"14.00\">1697</text>\n",
3639-
"</g>\n",
3640-
"<!-- beta -->\n",
3641-
"<g id=\"node1\" class=\"node\">\n",
3642-
"<title>beta</title>\n",
3643-
"<ellipse fill=\"none\" stroke=\"black\" cx=\"74\" cy=\"-193.61\" rx=\"45.01\" ry=\"37.45\"/>\n",
3644-
"<text text-anchor=\"middle\" x=\"74\" y=\"-204.91\" font-family=\"Times,serif\" font-size=\"14.00\">beta</text>\n",
3645-
"<text text-anchor=\"middle\" x=\"74\" y=\"-189.91\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n",
3646-
"<text text-anchor=\"middle\" x=\"74\" y=\"-174.91\" font-family=\"Times,serif\" font-size=\"14.00\">Uniform</text>\n",
3647-
"</g>\n",
3648-
"<!-- y_obs -->\n",
3649-
"<g id=\"node3\" class=\"node\">\n",
3650-
"<title>y_obs</title>\n",
3651-
"<ellipse fill=\"lightgrey\" stroke=\"black\" cx=\"76\" cy=\"-79.56\" rx=\"60.21\" ry=\"37.45\"/>\n",
3652-
"<text text-anchor=\"middle\" x=\"76\" y=\"-90.86\" font-family=\"Times,serif\" font-size=\"14.00\">y_obs</text>\n",
3653-
"<text text-anchor=\"middle\" x=\"76\" y=\"-75.86\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n",
3654-
"<text text-anchor=\"middle\" x=\"76\" y=\"-60.86\" font-family=\"Times,serif\" font-size=\"14.00\">WeibullBeta</text>\n",
3655-
"</g>\n",
3656-
"<!-- beta&#45;&gt;y_obs -->\n",
3657-
"<g id=\"edge1\" class=\"edge\">\n",
3658-
"<title>beta&#45;&gt;y_obs</title>\n",
3659-
"<path fill=\"none\" stroke=\"black\" d=\"M74.65,-155.92C74.82,-146.83 74.99,-136.96 75.16,-127.45\"/>\n",
3660-
"<polygon fill=\"black\" stroke=\"black\" points=\"78.66,-127.39 75.34,-117.33 71.67,-127.27 78.66,-127.39\"/>\n",
3661-
"</g>\n",
3662-
"<!-- y_cens -->\n",
3663-
"<g id=\"node4\" class=\"node\">\n",
3664-
"<title>y_cens</title>\n",
3665-
"<polygon fill=\"lightgrey\" stroke=\"black\" points=\"264,-62.74 264,-96.39 234.71,-120.19 193.29,-120.19 164,-96.39 164,-62.74 193.29,-38.94 234.71,-38.94 264,-62.74\"/>\n",
3666-
"<text text-anchor=\"middle\" x=\"214\" y=\"-90.86\" font-family=\"Times,serif\" font-size=\"14.00\">y_cens</text>\n",
3667-
"<text text-anchor=\"middle\" x=\"214\" y=\"-75.86\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n",
3668-
"<text text-anchor=\"middle\" x=\"214\" y=\"-60.86\" font-family=\"Times,serif\" font-size=\"14.00\">Potential</text>\n",
3669-
"</g>\n",
3670-
"<!-- beta&#45;&gt;y_cens -->\n",
3671-
"<g id=\"edge3\" class=\"edge\">\n",
3672-
"<title>beta&#45;&gt;y_cens</title>\n",
3673-
"<path fill=\"none\" stroke=\"black\" d=\"M106.12,-166.9C125.22,-151.62 149.7,-132.02 170.52,-115.36\"/>\n",
3674-
"<polygon fill=\"black\" stroke=\"black\" points=\"172.97,-117.88 178.59,-108.9 168.6,-112.42 172.97,-117.88\"/>\n",
3675-
"</g>\n",
3676-
"<!-- alpha -->\n",
3677-
"<g id=\"node2\" class=\"node\">\n",
3678-
"<title>alpha</title>\n",
3679-
"<ellipse fill=\"none\" stroke=\"black\" cx=\"217\" cy=\"-193.61\" rx=\"79.81\" ry=\"37.45\"/>\n",
3680-
"<text text-anchor=\"middle\" x=\"217\" y=\"-204.91\" font-family=\"Times,serif\" font-size=\"14.00\">alpha</text>\n",
3681-
"<text text-anchor=\"middle\" x=\"217\" y=\"-189.91\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n",
3682-
"<text text-anchor=\"middle\" x=\"217\" y=\"-174.91\" font-family=\"Times,serif\" font-size=\"14.00\">TruncatedNormal</text>\n",
3683-
"</g>\n",
3684-
"<!-- alpha&#45;&gt;y_obs -->\n",
3685-
"<g id=\"edge2\" class=\"edge\">\n",
3686-
"<title>alpha&#45;&gt;y_obs</title>\n",
3687-
"<path fill=\"none\" stroke=\"black\" d=\"M176.97,-160.8C159.46,-146.89 138.85,-130.5 120.82,-116.18\"/>\n",
3688-
"<polygon fill=\"black\" stroke=\"black\" points=\"122.75,-113.25 112.75,-109.76 118.4,-118.73 122.75,-113.25\"/>\n",
3689-
"</g>\n",
3690-
"<!-- alpha&#45;&gt;y_cens -->\n",
3691-
"<g id=\"edge4\" class=\"edge\">\n",
3692-
"<title>alpha&#45;&gt;y_cens</title>\n",
3693-
"<path fill=\"none\" stroke=\"black\" d=\"M216.02,-155.92C215.8,-147.84 215.57,-139.16 215.34,-130.65\"/>\n",
3694-
"<polygon fill=\"black\" stroke=\"black\" points=\"218.83,-130.33 215.07,-120.43 211.84,-130.52 218.83,-130.33\"/>\n",
3695-
"</g>\n",
3696-
"</g>\n",
3697-
"</svg>\n"
3698-
],
3619+
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<!-- Generated by graphviz version 2.50.0 (0)\n -->\n<!-- Pages: 1 -->\n<svg width=\"305pt\" height=\"239pt\"\n viewBox=\"0.00 0.00 304.90 239.08\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 235.08)\">\n<polygon fill=\"white\" stroke=\"transparent\" points=\"-4,4 -4,-235.08 300.9,-235.08 300.9,4 -4,4\"/>\n<g id=\"clust1\" class=\"cluster\">\n<title>cluster6</title>\n<path fill=\"none\" stroke=\"black\" d=\"M20,-11.09C20,-11.09 132,-11.09 132,-11.09 138,-11.09 144,-17.09 144,-23.09 144,-23.09 144,-113.04 144,-113.04 144,-119.04 138,-125.04 132,-125.04 132,-125.04 20,-125.04 20,-125.04 14,-125.04 8,-119.04 8,-113.04 8,-113.04 8,-23.09 8,-23.09 8,-17.09 14,-11.09 20,-11.09\"/>\n<text text-anchor=\"middle\" x=\"132.5\" y=\"-18.89\" font-family=\"Times,serif\" font-size=\"14.00\">6</text>\n</g>\n<g id=\"clust2\" class=\"cluster\">\n<title>cluster1697</title>\n<path fill=\"none\" stroke=\"black\" d=\"M168,-8C168,-8 260,-8 260,-8 266,-8 272,-14 272,-20 272,-20 272,-116.13 272,-116.13 272,-122.13 266,-128.13 260,-128.13 260,-128.13 168,-128.13 168,-128.13 162,-128.13 156,-122.13 156,-116.13 156,-116.13 156,-20 156,-20 156,-14 162,-8 168,-8\"/>\n<text text-anchor=\"middle\" x=\"250\" y=\"-15.8\" font-family=\"Times,serif\" font-size=\"14.00\">1697</text>\n</g>\n<!-- beta -->\n<g id=\"node1\" class=\"node\">\n<title>beta</title>\n<ellipse fill=\"none\" stroke=\"black\" cx=\"74\" cy=\"-193.61\" rx=\"45.01\" ry=\"37.45\"/>\n<text text-anchor=\"middle\" x=\"74\" y=\"-204.91\" font-family=\"Times,serif\" font-size=\"14.00\">beta</text>\n<text text-anchor=\"middle\" x=\"74\" y=\"-189.91\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n<text text-anchor=\"middle\" x=\"74\" y=\"-174.91\" font-family=\"Times,serif\" font-size=\"14.00\">Uniform</text>\n</g>\n<!-- y_obs -->\n<g id=\"node3\" class=\"node\">\n<title>y_obs</title>\n<ellipse fill=\"lightgrey\" stroke=\"black\" cx=\"76\" cy=\"-79.56\" rx=\"60.21\" ry=\"37.45\"/>\n<text text-anchor=\"middle\" x=\"76\" y=\"-90.86\" font-family=\"Times,serif\" font-size=\"14.00\">y_obs</text>\n<text text-anchor=\"middle\" x=\"76\" y=\"-75.86\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n<text text-anchor=\"middle\" x=\"76\" y=\"-60.86\" font-family=\"Times,serif\" font-size=\"14.00\">WeibullBeta</text>\n</g>\n<!-- beta&#45;&gt;y_obs -->\n<g id=\"edge1\" class=\"edge\">\n<title>beta&#45;&gt;y_obs</title>\n<path fill=\"none\" stroke=\"black\" d=\"M74.65,-155.92C74.82,-146.83 74.99,-136.96 75.16,-127.45\"/>\n<polygon fill=\"black\" stroke=\"black\" points=\"78.66,-127.39 75.34,-117.33 71.67,-127.27 78.66,-127.39\"/>\n</g>\n<!-- y_cens -->\n<g id=\"node4\" class=\"node\">\n<title>y_cens</title>\n<polygon fill=\"lightgrey\" stroke=\"black\" points=\"264,-62.74 264,-96.39 234.71,-120.19 193.29,-120.19 164,-96.39 164,-62.74 193.29,-38.94 234.71,-38.94 264,-62.74\"/>\n<text text-anchor=\"middle\" x=\"214\" y=\"-90.86\" font-family=\"Times,serif\" font-size=\"14.00\">y_cens</text>\n<text text-anchor=\"middle\" x=\"214\" y=\"-75.86\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n<text text-anchor=\"middle\" x=\"214\" y=\"-60.86\" font-family=\"Times,serif\" font-size=\"14.00\">Potential</text>\n</g>\n<!-- beta&#45;&gt;y_cens -->\n<g id=\"edge3\" class=\"edge\">\n<title>beta&#45;&gt;y_cens</title>\n<path fill=\"none\" stroke=\"black\" d=\"M106.12,-166.9C125.22,-151.62 149.7,-132.02 170.52,-115.36\"/>\n<polygon fill=\"black\" stroke=\"black\" points=\"172.97,-117.88 178.59,-108.9 168.6,-112.42 172.97,-117.88\"/>\n</g>\n<!-- alpha -->\n<g id=\"node2\" class=\"node\">\n<title>alpha</title>\n<ellipse fill=\"none\" stroke=\"black\" cx=\"217\" cy=\"-193.61\" rx=\"79.81\" ry=\"37.45\"/>\n<text text-anchor=\"middle\" x=\"217\" y=\"-204.91\" font-family=\"Times,serif\" font-size=\"14.00\">alpha</text>\n<text text-anchor=\"middle\" x=\"217\" y=\"-189.91\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n<text text-anchor=\"middle\" x=\"217\" y=\"-174.91\" font-family=\"Times,serif\" font-size=\"14.00\">TruncatedNormal</text>\n</g>\n<!-- alpha&#45;&gt;y_obs -->\n<g id=\"edge2\" class=\"edge\">\n<title>alpha&#45;&gt;y_obs</title>\n<path fill=\"none\" stroke=\"black\" d=\"M176.97,-160.8C159.46,-146.89 138.85,-130.5 120.82,-116.18\"/>\n<polygon fill=\"black\" stroke=\"black\" points=\"122.75,-113.25 112.75,-109.76 118.4,-118.73 122.75,-113.25\"/>\n</g>\n<!-- alpha&#45;&gt;y_cens -->\n<g id=\"edge4\" class=\"edge\">\n<title>alpha&#45;&gt;y_cens</title>\n<path fill=\"none\" stroke=\"black\" d=\"M216.02,-155.92C215.8,-147.84 215.57,-139.16 215.34,-130.65\"/>\n<polygon fill=\"black\" stroke=\"black\" points=\"218.83,-130.33 215.07,-120.43 211.84,-130.52 218.83,-130.33\"/>\n</g>\n</g>\n</svg>\n",
36993620
"text/plain": [
37003621
"<graphviz.graphs.Digraph at 0x7ff275a44f70>"
37013622
]

0 commit comments

Comments
 (0)