You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
171 B
Matlab

function [U]=dim_learn_feedback(U,y,x,beta)
if nargin<4, beta=0.005; end
e=x./(1e-2+(U'*y));
delta=beta.*(y*(e'-1));
%update weights
U=U.*(1 + delta);
U(find(U<0))=0;