Hello,
I was going through the lesson 6 code but unable to understand the SGD code for classification.I am confused about how y_hat is calculated.
Can anyone explain what following three lines of code do?
p = (-lin(a,b,x)).exp()
y_hat = 1/(1+p)
loss = nll(y_hat,y)