I have been using the patternnet classifier to classify between 2 different classes - labeled 0, 1. I'm trying to use MATLAB to generate Roc Curve graphs for some data produced using patternnet but I am having trouble understanding the parameters it needs to run.
[xTr, yTr, TTr, aucTr] = perfcurve(t, results.Data.y, 1);
I assume that: t is the vector of labels generated that states into which class my data belongs (mine consists of 0 and 1 and is 2x834 in size) scores is the variable created by patternnet called ‘results.Data.y' (2x834 in size) posclass is 1. But scores should be a vector (1x834 in size) and I don't know which row to choose?