Randomly splitting Face (Image) Dataset
This Matlab function can be used to randomly split any given face (image) dataset into training and testing sets. The function considers class/person labels. For example, in ORL Face dataset, there are 40 persons each with 10 images; the function can randomly split the 10 images of each person into 5 train images and 5 test images, as follows:
load ORL_FaceDataSet % uploaded here
[TrainSet TestSet]=Split_DataSet(ORL_FaceDataSet, 10, 5, 5);
Note that, you can select different numbers of train and test images.
Citar como
Falah Alsaqre (2024). Randomly splitting Face (Image) Dataset (https://www.mathworks.com/matlabcentral/fileexchange/89759-randomly-splitting-face-image-dataset), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |