Skip to content

Commit fe6ebba

Browse files
authored
Update README.rst
1 parent aa0a466 commit fe6ebba

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

README.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,9 +2039,21 @@ Plot of a ROC curve for a specific class
20392039

20402040

20412041
~~~~~~~~~~~~~~~~~~~~~~~
2042-
Area under curve~(AUC)
2042+
Area Under Curve (AUC)
20432043
~~~~~~~~~~~~~~~~~~~~~~~
20442044

2045+
Area under ROC curve (AUC) as a summarymetric measures the entire area underneath the ROC curve. AUC holds helpful properties such as increased sensitivityin analysis of variance (ANOVA) tests, being independent ofdecision threshold, being invariant toa prioriclass probabili-ties and indicating how well negative and positive classes areregarding decision index.
2046+
2047+
2048+
.. code:: python
2049+
2050+
import numpy as np
2051+
from sklearn import metrics
2052+
fpr, tpr, thresholds = metrics.roc_curve(y, pred, pos_label=2)
2053+
metrics.auc(fpr, tpr)
2054+
2055+
2056+
20452057
20462058
==========================
20472059
Text and Document Datasets
@@ -2253,7 +2265,7 @@ Citations:
22532265
22542266
@inproceedings{Kowsari2018Text_Classification,
22552267
title={Text Classification Algorithm: A Brief Overview},
2256-
author={Kowsari, Kamran and Jafari Meimandi, Kiana and Heidarysafa, Mojtaba and Gerber Matthew S. and Barnes, Laura E. and Brown, Donald E.},
2268+
author={Kowsari, Kamran and Jafari Meimandi, Kiana and Heidarysafa, Mojtaba and Gerber, Matthew S. and Barnes, Laura E. and Brown, Donald E.},
22572269
booktitle={},
22582270
year={2018},
22592271
DOI={https://doi.org/},

0 commit comments

Comments
 (0)