getx_snn.m

来自「神经网络的工具箱, 神经网络的工具箱,」· M 代码 · 共 17 行

M
17
字号
function X = getx_snn(net)%GETX_SNN get vector with connection weights and biases X from net.%% See also%%   SETX_SNN, NET_STRUCT_SNN%ind_1 = 1;for m = 1:net.numLayers   [rows, columns] = size(net.weights{m});   ind_2 = ind_1 + rows*columns;   X([ind_1:(ind_2-1)],1) = reshape(net.weights{m}, rows*columns, 1);   ind_1 = ind_2 + rows;   X([ind_2:(ind_1-1)],1) = net.biases{m};end

⌨️ 快捷键说明

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