Skip to content

Commit

Permalink
Updated old validation notebook imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaarnio committed Apr 15, 2024
1 parent 301a77f commit 774b078
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions notebooks/validation_functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -24,8 +24,6 @@
"import sys\n",
"sys.path.insert(0, \"..\")\n",
"from eis_toolkit.validation.calculate_base_metrics import calculate_base_metrics\n",
"from eis_toolkit.validation.calculate_auc import calculate_auc\n",
"from eis_toolkit.validation.get_pa_intersection import get_pa_intersection\n",
"from eis_toolkit.validation.plot_rate_curve import plot_rate_curve\n",
"from eis_toolkit.validation.plot_prediction_area_curves import plot_prediction_area_curves"
]
Expand Down Expand Up @@ -205,25 +203,17 @@
"</div>"
],
"text/plain": [
" true_positive_rate_values proportion_of_area_values threshold_values \\\n",
"0 0.000000 0.000388 9.670 \n",
"1 0.166667 0.016693 9.060 \n",
"2 0.333333 0.019410 8.992 \n",
"3 0.500000 0.065217 8.795 \n",
"4 0.666667 0.198758 6.465 \n",
"5 0.833333 0.449922 5.469 \n",
"6 1.000000 0.657997 4.127 \n",
"7 1.000000 1.000000 2.503 \n",
" true_positive_rate_values ... false_positive_rate_values\n",
"0 0.000000 ... 0.000000\n",
"1 0.166667 ... 0.000000\n",
"2 0.333333 ... 0.000000\n",
"3 0.500000 ... 0.142857\n",
"4 0.666667 ... 0.142857\n",
"5 0.833333 ... 0.285714\n",
"6 1.000000 ... 0.428571\n",
"7 1.000000 ... 1.000000\n",
"\n",
" false_positive_rate_values \n",
"0 0.000000 \n",
"1 0.000000 \n",
"2 0.000000 \n",
"3 0.142857 \n",
"4 0.142857 \n",
"5 0.285714 \n",
"6 0.428571 \n",
"7 1.000000 "
"[8 rows x 4 columns]"
]
},
"execution_count": 4,
Expand Down Expand Up @@ -327,7 +317,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.10.13"
},
"orig_nbformat": 4,
"vscode": {
Expand Down

0 comments on commit 774b078

Please sign in to comment.