about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/netlab3.3/gppak.m
blob: bb1c52a8795f818c98f4a0219bda77b2652904a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function hp = gppak(net)
%GPPAK	Combines GP hyperparameters into one vector.
%
%	Description
%	HP = GPPAK(NET) takes a Gaussian Process data structure NET and
%	combines the hyperparameters into a single row vector HP.
%
%	See also
%	GP, GPUNPAK, GPFWD, GPERR, GPGRAD
%

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

% Check arguments for consistency
errstring = consist(net, 'gp');
if ~isempty(errstring);
  error(errstring);
end
hp = [net.bias, net.noise, net.inweights, net.fpar];