I am tying to plot an ROC curve for Binary classification using RandomForestClassifier
I have two numpy arrays one contains predicted values and one contains true values as follows:
In [84]: test
Out[84]: array([0, 1, 0, ..., 0, 1, 0])
In [85]: pred
Out[85]: array([0, 1, 0, ..., 1, 0, 0])
How do I port ROC curve and obtain AUC (Area Under Curve) for this binary classification result in ipython?