Answers for "multiclass ROC AUC curve"

0

multiclass ROC AUC curve

def multiclass_roc_auc_score(y_test, y_pred, average="macro"):
	lb = LabelBinarizer()    
    lb.fit(y_test)
    y_test = lb.transform(y_test)    
    y_pred = lb.transform(y_pred)
    return roc_auc_score(y_test, y_pred, average=average)
Posted by: Guest on June-05-2021

Browse Popular Code Answers by Language