about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/netlab3.3/glmpak.m
blob: 300960fccf9f60c23889ad6464a9c45826900376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function w = glmpak(net)
%GLMPAK	Combines weights and biases into one weights vector.
%
%	Description
%	W = GLMPAK(NET) takes a network data structure NET and  combines them
%	into a single row vector W.
%
%	See also
%	GLM, GLMUNPAK, GLMFWD, GLMERR, GLMGRAD
%

%	Copyright (c) Ian T Nabney (1996-2001)

errstring = consist(net, 'glm');
if ~errstring
  error(errstring);
end

w = [net.w1(:)', net.b1];