March 2026
Intermediate to advanced
544 pages
15h 56m
English
nn.Module subclassesIn the previous chapter, we built a simple neural network that could fit (or overfit) the data, thanks to the many parameters available for optimization in the linear layers. Our model used fully connected layers, where each neuron connects to every neuron in the previous layer, treating the image as a flattened vector with no spatial structure preserved. However, we had problems with our model in that it was better at memorizing the training set than it was at generalizing the properties of ...
Read now
Unlock full access