This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
from sklearn.metrics import roc_curve, auc | |
import seaborn as sns | |
sns.set('talk', 'whitegrid', 'dark', font_scale=1.5, font='Ricty', | |
rc={"lines.linewidth": 2, 'grid.linestyle': '--'}) | |
fpr, tpr, _ = roc_curve([1, 0, 1, 0, 1, 0, 0], [0.9, 0.8, 0.7, 0.7, 0.6, 0.5, 0.4]) | |
roc_auc = auc(fpr, tpr) |