training model neural network
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Prashant Saini
il 12 Mar 2021
Commentato: Prashant Saini
il 12 Mar 2021
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 Commenti
Risposta accettata
Rik
il 12 Mar 2021
This sounds like an mlint warning. The source would be reduceDataset being false, which would cause the entire if block to be skipped.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Deep Learning Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!