approxhelper.m

来自「一个MATLAB写的BP神经网络原代码」· M 代码 · 共 25 行

M
25
字号
% approxhelper.m%% This script does the training, following LearnSchedule.for i = 1:10000  if epoch >= sum(LearnSchedule(1:sched_pointer,1))    sched_pointer = sched_pointer + 1;    if sched_pointer > size(LearnSchedule,1), return, end    end  LearnRate = LearnSchedule(sched_pointer,2);  epoch = epoch+1;  bp_innerloop  if rem(epoch-1,10) == 0      PlotApprox(Patterns,Result1,Desired,Result2);      fprintf('Epoch %4d:  Error = %f\n',epoch,TSS);      drawnow     end  if TSS < TSS_Limit, break, end  end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?