mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
- Indent loss calculation for test data in the 1st training loop so it is under inference mode. - Add general notes in "notes" directory.
460 B
460 B
Notes
-
In
LinearRegressionModel, therequires_gradanddtypeparameters totorch.randnare redundant, asnn.Parametertakes care of setting them. -
Again in
LinearRegressionModel, theforwardfunction calculatesw \cdot x + b, but in the previous notebook, you introduced the linear function in its general form,x \cdot A^{T} + b. Since this example is using vectors, it doesn't matter, but it might be worth to note this difference.