mlperr

Purpose

Evaluate error function for 2-layer network.

Synopsis

e = mlperr(net, x, t)

Description

e = mlperr(net, x, t) takes a network data structure net together with a matrix x of input vectors and a matrix t of target vectors, and evaluates the error function e. The choice of error function corresponds to the output unit activation function. Each row of x corresponds to one input vector and each row of t corresponds to one target vector.

[e, edata, eprior] = mlperr(net, x, t) additionally returns the data and prior components of the error, assuming a zero mean Gaussian prior on the weights with inverse variance parameters alpha and beta taken from the network data structure net.

See Also

mlp, mlppak, mlpunpak, mlpfwd, mlpbkp, mlpgrad
Pages: Index

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