consist.htm
来自「模式识别的主要工具集合」· HTM 代码 · 共 78 行
HTM
78 行
<html><head><title>Netlab Reference Manual consist</title></head><body><H1> consist</H1><h2>Purpose</h2>Check that arguments are consistent.<p><h2>Synopsis</h2><PRE>errstring = consist(net, type, inputs, outputs)errstring = consist(net, type, inputs)errstring = consist(net, type)</PRE><p><h2>Description</h2><p><CODE>errstring = consist(net, type, inputs)</CODE> takes a networkdata structure <CODE>net</CODE> together with a string <CODE>type</CODE> containingthe correct network type, a matrix <CODE>inputs</CODE> of input vectors and checksthat the data structure is consistent with the other arguments. An emptystring is returned if there is no error, otherwise the string contains therelevant error message. If the <CODE>type</CODE> string is empty, then anytype of network is allowed.<p><CODE>errstring = consist(net, type)</CODE> takes a network data structure<CODE>net</CODE> together with a string <CODE>type</CODE> containing the correct network type, and checks that the two types match.<p><CODE>errstring = consist(net, type, inputs, outputs)</CODE> also checks that thenetwork has the correct number of outputs, and that the number of patternsin the <CODE>inputs</CODE> and <CODE>outputs</CODE> is the same. The fields in <CODE>net</CODE>that are used are<PRE> type nin nout</PRE><p><h2>Example</h2><p><CODE>mlpfwd</CODE>, the function that propagates values forward through an MLPnetwork, has the following check at the head of the file:<PRE>errstring = consist(net, 'mlp', x, t);if ~isempty(errstring) error(errstring)end</PRE><p><h2>See Also</h2><CODE><a href="mlpfwd.htm">mlpfwd</a></CODE><hr><b>Pages:</b><a href="index.htm">Index</a><hr><p>Copyright (c) Ian T Nabney (1996-9)</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?