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] - Rev 8

Compare with Previous | Blame | View Log

function [wb N_layers] = getwbc(NET)
% save neural network's weigths
% and biases in a cell array
 
N_layers = NET.numLayers;
 
wb = cell(N_layers,2);
 
wb(1,1) = cell2mat(NET.IW(1,1));
wb(1,2) = cell2mat(NET.b(1));
 
for(i=2:N_layers)
  wb(i,1) = cell2mat(NET.LW(i,i-1));
  wb(i,2) = cell2mat(NET.b(i));
end;

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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