import numpy as np
from sklearn import metrics
y = np.array([1, 1, 2, 2])
scores = np.array([0.1, 0.4, 0.35, 0.8])
fpr, tpr, thresholds = metrics.roc_curve(y, scores, pos_label=2)
I am doing link prediction using an algorithm and I have a test and training network.For a given node I have the following vector [1,0,1,0,0] which means the algorithm could rightly predict the 1st and third link and failed in the others. Now I want to measure the performance of the algorithm using ROC curve using scikit learn and in the tutorial I understood the y array which is same as my vector but what is the score array in the tutorial?