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