cliptr_snn.m
来自「神经网络的工具箱, 神经网络的工具箱,」· M 代码 · 共 22 行
M
22 行
function tr=cliptr_snn(tr,epochs)%CLIPTR_SNN Clip training record to the final number of epochs.%% Syntax%% tr = cliptr(tr,epochs)%% See also%% TR_STRUCT_SNN%indices = 1:(epochs+1);names = fieldnames(tr);for i=1:prod(size(names))% next two lines equals this two: % name = names{i};% eval(['tr.' name ' = tr.' name '(:,indices);']); cont = subsref(tr, substruct('.', names{i})); tr = subsasgn(tr, substruct('.', names{i}), cont(:,indices));end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?