I'm new to Torch, and I am working on a problem where I have to depict the Receiver Operating Characteristic (ROC) curves and their Areas Under the Curve (AUC).
I have to arrays: TPrate
on the y axis and FPrate
on the x axis, having both size n
How could I compute the Area Under the Curve of this function in Torch7 or Lua?
I also found this code from JayClascoe.com but I don't know how to use its functions.