Home > @ahrbf > private > updatevw.m

updatevw

PURPOSE ^

UPDATEVW Updates the weight vectors based on error and last input

SYNOPSIS ^

function net = updatevw(net,err)

DESCRIPTION ^

 UPDATEVW Updates the weight vectors based on error and last input

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function net = updatevw(net,err)
0002 % UPDATEVW Updates the weight vectors based on error and last input
0003 
0004 % Satrajit Ghosh, SpeechLab, Boston University. (c)2001
0005 % $Header: /mnt/localhd/cvsdir/MODELLING/NEWDIVA/@ahrbf/private/updatevw.m,v 1.1.1.1 2006/10/06 18:20:23 brumberg Exp $
0006 
0007 % $NoKeywords: $
0008 
0009 % Calculate delta value for udating network weights
0010 delta = net.h*err';
0011 
0012 % Update the weights of the output layer and the distance matrix layer
0013 % The equations for update are derived from network equations
0014 net.v = net.v + net.alpha*delta';
0015 net.w = net.w + net.alpha*permute(delta(:,:,ones(1,1,net.nin)),[3 1 2]).*net.c(:,:,ones(1,1,net.nout));
0016 
0017 % TODO: Update centers and variances

Generated on Tue 27-Mar-2007 12:06:24 by m2html © 2003