For the first time in my research on machine learning, I am still a beginner.I would like to calculate accuracy, precision, and recall by dealing with the problem of classification in the study.
The number of data is small (about 30) and the split method greatly affects the score.I am having trouble with the evaluation method (for example, acuracy is [0.833333330.7272730.4444444]) due to the large variation in cross-validation.In this case, is it okay to evaluate the average by performing cross-examination 100 or 500 times?This is a very rudimentary question, but I appreciate your cooperation.
If the data is small, I think LOOCV would be a good way to verify generalization performance.There are about 30 cases in each class, so you can see which data affects accuracy by creating a data set with only one test data out of 120 cases and the remaining 119 cases as training data.I would appreciate it if you could refer to it.
for i in range (ITER):
Even if you don't rotate the loop in , if you average cv= or n_splits= by adding as many natural numbers as possible (10-120?), you'll get more accurate metrics with more iterations.
© 2023 OneMinuteCode. All rights reserved.