I ran the following code for a binary classification task w/ an SVM in both R (first…
Jump to turn (6)
- 1I ran the following code for a binary classification task w/ an SVM in both R (f
- 2Y=as.factor(rep(c(1,2), times=14)) X=matrix(runif(length(Y)100), nrow=length(Y))
- 3Don't I need to calculcate the AUC for each iteration individually and average a
- 4Earlier you told me I need to average AUC values
- 5Would it be valid to use labels instead of decision values and average the AUCs
- 6The problem is that with your proposed method I also get an AUC larger than 0.5
- User
I ran the following code for a binary classification task w/ an SVM in both R (first sample) and Python (second example). Given randomly generated data (X) and response (Y), this code performs leave group out cross validation 1000 times. Each entry of Y is therefore the mean of the prediction across CV iterations. Computing area under the curve should give ~0.5, since X and Y are completely random. However, this is not what we see. Area under the curve is frequently significantly higher than 0.5. The number of rows of X is very small, which can obviously cause problems. Any idea what could be happening here? I know that I can either increase the number of rows of X or decrease the number of columns to mediate the problem, but I am looking for other issues.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.