I want to implement the LMS algorithm. First, I generate the inputs in the intervall [0,5] with 51 entries. A function y gives me the outputs. The target values are calculated from y. Therefore I add a random number to y.
Psi soll eine Transformation darstellen der Form (1,x,x^d)
Where Psi is a transformation Psi(x) = (1,x,x^d). To calculate the gradient, I followed these
Script. I set g to w so that both vectors have the same shape.
In the final step, I called the gradient function within the LMS implementation
When I finally call the functiom LMS, I do not get an error, but the algorithm does not determin. I probably have done something wrong with the gradient implementation but I can't figure out what.
I hope somebody can help me here.