Squeeze making wonders? Bias is -ve? #933
Unanswered
MuhammadBilal848
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wrote the Linear Regression Class a bit differently using
nn.Linear
method. The thing I noticed is that, in the video (Pytorch workflow), we were assigning thenn.Parameters(torch.rand())
so rand wasn't assigning thew
andb
as negative, so the model was taking off from positivew
andb
and was able to successfully converge.But in
nn.Linear()
, the method assigns thew
andb
as negative, and from that point, the model makes efforts to converge and takes multiple attempts to finally make good predictions. I don't get it why?Also, I tried removing the
.squeeze(1)
from theforward()
method and it was also affecting the model's accuracy. could anyone explain this?Beta Was this translation helpful? Give feedback.
All reactions