text_plain_output_1.png
from sklearn.metrics import roc_auc_score

y_perfect = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
y_flliped = [1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1]
roc_auc_score(y_perfect, y_flliped)

y_preds = [0.33, 0.33, 0.33, 0.5, 0.5, 0, 0, 0, 0, 0, 1, 1, 0.5, 0.5, 1, 1, 1, 0.66, 0.66, 0.66]
roc_auc_score(y_flliped, y_preds)