training model neural network
조회 수: 4 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
Rik
2021년 3월 12일
This sounds like an mlint warning. The source would be reduceDataset being false, which would cause the entire if block to be skipped.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!