If any non scalar value or a number less than 1 is used as trainIterations, as of version nn22_v2015.03.31, nn_trainNN.m would throw "unknown variable" errors inside the main training routine.
If any non scalar value or a number less than 1 is used as trainIterations, as of version nn22_v2015.03.31, nn_trainNN.m would throw "unknown variable" errors inside the main training routine.
The following added lines (#73 to #79) solve the issue.
% It may happen that trainIterations is not defined or is less than 1...if(~isscalar(trainIterations)||trainIterations<1)fprintf('\n');fprintf(msG.error_trainIterations_IsNotDefinedOrIsLessThan1);returnOK=1;return,end
At the same time, the corresponding message lines (#117) were added in both "nn_localization_en_US.m" and "nn_localization_es_AR.m".
Last edit: aQaSoft 2015-04-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The variable trainIterations may be left empty by accident pressing Enter at the "How many training itarations do you want?" without entering a value.
If any non scalar value or a number less than 1 is used as trainIterations, as of version nn22_v2015.03.31, nn_trainNN.m would throw "unknown variable" errors inside the main training routine.
The following added lines (#73 to #79) solve the issue.
At the same time, the corresponding message lines (#117) were added in both "nn_localization_en_US.m" and "nn_localization_es_AR.m".
Last edit: aQaSoft 2015-04-18