Neural Network Toolbox Previous page   Next Page
mae

Mean absolute error performance function

Syntax

perf = mae(E,X,PP)

perf = mae(E,net,PP)

info = mae(code)

Description

mae is a network performance function.

mae(E,X,PP) takes from one to three arguments,

and returns the mean absolute error.

The errors E can be given in cell array form,

or as a matrix,

where

mae(E,net,PP) can take an alternate argument to X,

mae(code) returns useful information for each code string:

Examples

Here a perceptron is created with a 1-element input ranging from -10 to 10, and one neuron.

Here the network is given a batch of inputs P. The error is calculated by subtracting the output A from target T. Then the mean absolute error is calculated.

Note that mae can be called with only one argument because the other arguments are ignored. mae supports those arguments to conform to the standard performance function argument list.

Network Use

You can create a standard network that uses mae with newp.

To prepare a custom network to be trained with mae, set net.performFcn to 'mae'. This will automatically set net.performParam to the empty matrix [], as mae has no performance parameters.

In either case, calling train or adapt will result in mae being used to calculate performance.

See newp for examples.

See Also

mse, msereg, dmae


Previous page  logsig mandist Next page

© 1994-2005 The MathWorks, Inc.