Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | |
import numpy as np | |
from sklearn.metrics import roc_curve, auc | |
from scipy import interp | |
from itertools import cycle | |
def roc_auc(y_test, y_score, n_classes): | |
"""Plots ROC curve for micro and macro averaging.""" | |
# Compute ROC curve and ROC area for each class |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.