Video 78: Loss not decreasing in linear model #572
-
I'm following video 78 for classification of the circles data set. When checking if the model has the capacity to learn despite not being able to classify circles correctly, for some reason mine is not updating. Code below: Generate the data, using y = mx + c
Create the model, and move it and the data to the gpu:
Training the model
Which gives me the following output:
My code is correct as far as I can see, so I don't know how to fix this. Is it a Google Colab issue? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
Hi,
your model is actually not updating parameters. There are parentheses after optimiser.step ->
optimiser.step()