|
694 | 694 | "# receiver operating characteristic (ROC) curve:\n", |
695 | 695 | "plt.subplot(2, 2, 1)\n", |
696 | 696 | "plt.plot(FPR, TPR, lw=2) # TN ok, FP ok, FN ok, TP ok\n", |
697 | | - "plt.plot(0.05, 0.95, 'C3x'),\n", |
| 697 | + "plt.plot(0.05, 0.95, 'C3x', label='5%, 95% target'),\n", |
698 | 698 | "plt.plot([0, 1], [0, 1])\n", |
699 | 699 | "plt.text(0.05, 0.7, 'ROC curve')\n", |
700 | 700 | "plt.xlabel('FPR = type I error')\n", |
701 | 701 | "plt.ylabel('TPR = recall = sensitivity = power')\n", |
702 | 702 | "plt.grid(True)\n", |
| 703 | + "plt.legend()\n", |
703 | 704 | "plt.axis([0, 1, 0, 1])\n", |
704 | 705 | "\n", |
705 | 706 | "plt.subplot(2, 2, 2)\n", |
|
737 | 738 | "source": [ |
738 | 739 | "We see that the model is highly balanced w.r.t. the {0,1}-class predictions.\n", |
739 | 740 | "\n", |
740 | | - "The model performs with a type-I error less than 5% and with a type-II error less than 5%.\n", |
| 741 | + "Using the typical 50% decision boundary, the trained model almost ideally performs with 5% / 95% power on the unseen test data.\n", |
741 | 742 | "\n", |
742 | | - "The model performs with a true positive rate (TPR) larger than 95% and with a true negative rate (TNR) larger than 95%.\n", |
743 | | - "\n", |
744 | | - "In medical applications (cf. COVID-19 testing) type-I and type-II percentages are typically even smaller; and thus TPR and TNR percentages are typically even larger." |
| 743 | + "In medical applications (cf. COVID-19 testing) type-I and type-II errors are typically smaller, and TPR / TNR larger." |
745 | 744 | ] |
746 | 745 | }, |
747 | 746 | { |
|
0 commit comments