The label in my data is a (N by 1) vector. The label values are either 0 for negative samples or 1 for positive samples (so, it's a binary classification problem). I use the .fit function of sklearn and fitted a random forest on my train set. To calculate AUC for the test set I use metrics.roc_auc_score (test_labels, probabilities). I'm using
predict_proba(my_test_set) to get the probabilities. However, predict_proba(my_test_set) returns a (N_test, 2) matrix. I saw many people use the second column of this returned matrix (predict_proba(my_test_set)[:,1]) and feed it to the metrics.roc_auc_score to calculate AUC, but why the second one? Why not the first column (predict_proba(my_test_set)[:,0])?