?? getx_snn.m
字號:
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -