OpenCores
URL https://opencores.org/ocsvn/artificial_neural_network/artificial_neural_network/trunk

Subversion Repositories artificial_neural_network

[/] [artificial_neural_network/] [trunk/] [test_bench/] [octave/] [getwbc.m] - Blame information for rev 8

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 8 jstefanowi
function [wb N_layers] = getwbc(NET)
2
% save neural network's weigths
3
% and biases in a cell array
4
 
5
N_layers = NET.numLayers;
6
 
7
wb = cell(N_layers,2);
8
 
9
wb(1,1) = cell2mat(NET.IW(1,1));
10
wb(1,2) = cell2mat(NET.b(1));
11
 
12
for(i=2:N_layers)
13
  wb(i,1) = cell2mat(NET.LW(i,i-1));
14
  wb(i,2) = cell2mat(NET.b(i));
15
end;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.