errstring = consist(net, type, inputs, outputs) errstring = consist(net, type, inputs) errstring = consist(net, type)
errstring = consist(net, type, inputs) takes a network
data structure net together with a string type containing
the correct network type, a matrix inputs of input vectors and checks
that the data structure is consistent with the other arguments. An empty
string is returned if there is no error, otherwise the string contains the
relevant error message. If the type string is empty, then any
type of network is allowed.
errstring = consist(net, type) takes a network data structure
net together with a string type containing the correct
network type, and checks that the two types match.
errstring = consist(net, type, inputs, outputs) also checks that the
network has the correct number of outputs, and that the number of patterns
in the inputs and outputs is the same. The fields in net
that are used are
type nin nout
mlpfwd, the function that propagates values forward through an MLP
network, has the following check at the head of the file:
errstring = consist(net, 'mlp', x, t); if ~isempty(errstring) error(errstring) end
mlpfwdCopyright (c) Ian T Nabney (1996-9)