glmerr

Purpose

Evaluate error function for generalized linear model.

Synopsis

e = glmerr(net, x, t)
[e, edata, eprior] = glmerr(net, x, t)
[e, edata, eprior, y, a] = glmerr(net, x, t)

Description

e = glmerr(net, x, t) takes a generalized linear model 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, y, a] = glmerr(net, x, t) also returns the data and prior components of the total error.

[e, edata, eprior, y, a] = glmerr(net, x) also returns a matrix y giving the outputs of the models and a matrix a giving the summed inputs to each output unit, where each row corresponds to one pattern.

See Also

glm, glmpak, glmunpak, glmfwd, glmgrad, glmtrain
Pages: Index

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