https://kr.mathworks.com/help/vision/ref/splitanomalydata.html
splitAnomalyData - Split data into training, validation and testing sets for anomaly detection -...
This MATLAB function automatically splits the input image datastore, ds, into three datastores for training, validation and testing of anomaly detection...
validation and testing