Assignment in Gradient Descent Algorithm

Today i learn about Gradient Descent Algorithm. There is something interesting in that equation that very common use in Computer Science.

“=”

My lecturer in university never said that in programming language like Java, C, or Python this sign is for assignment not an equals.

But in Math the sign “=” is used to check that value from left side is equals to hand side. Just like :

a = b (this is means that value of variable a and value of variable b is equals)

5x^2 + 2x + 3 = 0 ( this is means that equation in the left is equals to zero)

But in programming we use this sccript :

a = a + 1 ( this is means, value of variable a is value variable a + 1) 

And in math we use this notation :

a := a+1 (ovveride new value of a with equation in the right hand side)
 
2
Kudos
 
2
Kudos

Now read this

Simple User Based Recommendation Using Mahout

Tonight, i want to share a little brief to give User-Based recommendation. First we need to know what is the algorithm of user-based recommendation. User Based Recommendation is using pearson correlation as main algorithm to compare... Continue →