# netpak

## Purpose

Combines weights and biases into one weights vector.

## Synopsis

    w = netpak(net)

## Description

`w = netpak(net)` takes a network data structure `net` and combines the component weight matrices into a single row vector `w`. The facility to switch between these two representations for the network parameters is useful, for example, in training a network by error function minimization, since a single vector of parameters can be handled by general-purpose optimization routines. This function also takes into account a `mask` defined as a field in `net` by removing any weights that correspond to entries of 0 in the mask.

## See Also

`net`, `netunpak`, `netfwd`, `neterr`, `netgrad`

Pages: Index

Copyright (c) Ian T Nabney (1996-9)