Classifier app K-fold cross validation: Is it possible to manually assign specific data sets within each fold?

1 view (last 30 days)
I am carrying out an activity classification study with 10 patients. Each patient has performed 10 repetitions of 5 exercises and each repetition has been segmented.
The matlab classifier app allows you to train and test algorithms using a K-fold cross validation technique which is fairly easy to implement. The division of the data set into k folds is performed automatically and I appreciate this ensures equal distribution of each labelled activity per fold.
I would like to assign data for each patient into each specific fold. This is to ensure each testing phase is performed on a new patient and that the algorithm being tested in that round hasn't been trained on any data from that specific patient.
Can anyone tell me if and how this can be done?
Thank you!

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!