MATLAB: Training model neural network

neural networkstraining

if reduceDataset
numUniqueLabels = numel(unique(adsTrain.Labels));
% Reduce the dataset by a factor of 20
adsTrain = splitEachLabel(adsTrain,round(numel(adsTrain.Files) / numUniqueLabels / 20));
adsValidation = splitEachLabel(adsValidation,round(numel(adsValidation.Files)/ numUniqueLabels / 20));
end
error line 2 showing statement will never execute

Best Answer

This sounds like an mlint warning. The source would be reduceDataset being false, which would cause the entire if block to be skipped.
Related Question