New to KNIME…looking for a way to calculate area under a curve. I just have two columns, X & Y.
Wasn’t able to set up the ROC curve got error no positive values in class column. Only column available in drop down is the x column…
Thanks for the response…I have two columns with values for X n Y axis…It automatically selects the x axis
as the class column. A warning shows up that says “Column X axis contains no possible positive values”.
The values start at 0 and increment by 1 …not sure what that means.
@Gimli question is what do you want to measure. the nodes mentioned would have a prediction (score) that typically rund between 0 and 1 and a (binary) variable of 1 and 0 (true/false) that would be the ground truth about what your model tried to predict (taken from the test or validation data). You can read more about that here:
I just want to measure the area under the curve created by the X n Y values if Im explaining that correctly…not a prediction? a definite integral…integrate y = f(x) between the limits of a and b
@Gimli OK I hope I got what you want. I converted the Python code from two Stackoverflow threads (1, 2) into a small KNIME workflow. You might want to check if you could adapt that.
You would enter the data and the variables and the numeric borders