Hi,
I want to implement a ‘weighted’ version of gradient descent like this:

image.png1138×344 23.7 KB

for each data point in that batch, I want to calculate the gradient, and a weight (I have this already) and then will do the descent together.
However, I went through some posts, did not really find useful info. Can someone help?
Thanks.