UPDATEVW Updates the weight vectors based on error and last input
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