From 62be4e73a09f1720227b5ff9501292bca022a152 Mon Sep 17 00:00:00 2001 From: GretaVilla Date: Thu, 21 Jul 2022 08:20:06 +0000 Subject: [PATCH] updated example notebook --- .../example_classification_model.ipynb | 20969 ++++++++-------- 1 file changed, 10523 insertions(+), 10446 deletions(-) diff --git a/example-notebook/example_classification_model.ipynb b/example-notebook/example_classification_model.ipynb index f6eb67a..cc5d67f 100644 --- a/example-notebook/example_classification_model.ipynb +++ b/example-notebook/example_classification_model.ipynb @@ -12,7 +12,8 @@ "import inspect\n", "\n", "import numpy as np\n", - "import pandas as pd" + "import pandas as pd\n", + "import plotly.graph_objects as go" ] }, { @@ -168,9 +169,11 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 5, "id": "ce81fd05", - "metadata": {}, + "metadata": { + "scrolled": false + }, "outputs": [ { "data": { @@ -268,64 +271,76 @@ { "customdata": [ [ - 1.828840919366975 + 1.8829064005331113 ], [ - 0.828840919366975 + 0.8829064005331113 ], [ - 0.40576642434408405 + 0.4338412959831805 ], [ - 0.39545714058536174 + 0.39782772199062094 ], [ - 0.3594211276065429 + 0.3757061042924499 ], [ - 0.3082263324058962 + 0.37243543040526134 ], [ - 0.3058756903781123 + 0.3525129725783062 ], [ - 0.2988750872353909 + 0.3301962740255774 ], [ - 0.2943333595555139 + 0.3280321800602266 ], [ - 0.288949660975063 + 0.300888575200243 ], [ - 0.2789948296152265 + 0.2968368395264936 ], [ - 0.2695121832461591 + 0.2683259862999592 ], [ - 0.26277378805251284 + 0.2669456333638167 ], [ - 0.2400839371736621 + 0.2641184486339815 ], [ - 0.23510938125880582 + 0.25929236881564155 ], [ - 0.19784072995209534 + 0.25884609489023336 ], [ - 0.19113003607433052 + 0.24918148149241456 ], [ - 0.18611502823023685 + 0.24889171205469662 ], [ - 0.1841218950153069 + 0.2451121675467701 ], [ - 0.020503698580030004 + 0.20271656460844986 + ], + [ + 0.1999642147144849 + ], + [ + 0.19745487816192991 + ], + [ + 0.1957958401674481 + ], + [ + 0.025389097878735077 ] ], "hovertemplate": "Threshold: %{customdata:.4f}
False Positive Rate: %{x:.4f}
True Positive Rate: %{y:.4f}", @@ -339,7 +354,7 @@ "symbol": "circle" }, "mode": "lines", - "name": "ROC Curve (AUC=0.979)", + "name": "ROC Curve (AUC=0.977)", "orientation": "v", "showlegend": true, "textposition": "top center", @@ -350,30 +365,38 @@ 0, 0.006289308176100629, 0.006289308176100629, - 0.05660377358490566, - 0.05660377358490566, - 0.06289308176100629, - 0.06289308176100629, - 0.06918238993710692, - 0.06918238993710692, - 0.08176100628930817, - 0.08176100628930817, - 0.11320754716981132, - 0.11320754716981132, - 0.18867924528301888, - 0.18867924528301888, - 0.20125786163522014, - 0.20125786163522014, + 0.012578616352201259, + 0.012578616352201259, + 0.025157232704402517, + 0.025157232704402517, + 0.03773584905660377, + 0.03773584905660377, + 0.0880503144654088, + 0.0880503144654088, + 0.09433962264150944, + 0.09433962264150944, + 0.10062893081761007, + 0.10062893081761007, + 0.1069182389937107, + 0.1069182389937107, + 0.16352201257861634, + 0.16352201257861634, + 0.16981132075471697, + 0.16981132075471697, 1 ], "xaxis": "x", "y": [ 0, 0.024390243902439025, - 0.7317073170731707, - 0.7317073170731707, - 0.8048780487804879, - 0.8048780487804879, + 0.6585365853658537, + 0.6585365853658537, + 0.7073170731707317, + 0.7073170731707317, + 0.7560975609756098, + 0.7560975609756098, + 0.7804878048780488, + 0.7804878048780488, 0.8292682926829268, 0.8292682926829268, 0.8536585365853658, @@ -1274,9 +1297,9 @@ } }, "text/html": [ - "