deltalog.m

来自「模式识别工具箱,本人毕业论文时用到的,希望对大家有用!」· M 代码 · 共 35 行

M
35
字号
function d = deltalog(a,d,w)%DELTALOG Delta function for LOGSIG neurons.%	        %	DELATLIN(A)%	  A - S1xQ matrix of output vectors.%	Returns the S1xQ matrix of derivatives of the output vectors%	  with respect to the net input of the PURELIN transfer function.%	%	DELTALOG(A,E)%	  E - S1xQ matrix of associated errors%	Returns an S1xQ matrix of derivatives of error for an output layer.%	%	DELTALOG(A,D,W)%	  D - S2xQ matrix of next layer delta vectors%	  W - S2xS1 weight matrix between layers.%	Returns an S1xQ matrix of derivatives of error for a hidden layer.%	%	See also NNTRANS, BACKPROP, LOGSIG, DELTALIN, DELTATAN% Mark Beale, 1-31-92% Revised 12-15-93, MB% Copyright (c) 1992-94 by the MathWorks, Inc.% $Revision: 1.1 $  $Date: 1994/01/11 16:24:05 $if nargin < 1,error('Not enough input arguments'),endif nargin == 1  d = a.*(1-a);elseif nargin == 2  d = a.*(1-a).*d;else  d = a.*(1-a).*(w'*d);end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?