Randomly splitting Face (Image) Dataset

Randomly splitting Face (Image) Dataset into training and testing sets
29 Downloads
Updated 3 Apr 2021

View License

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.

Cite As

Falah Alsaqre (2026). Randomly splitting Face (Image) Dataset (https://www.mathworks.com/matlabcentral/fileexchange/89759-randomly-splitting-face-image-dataset), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0