3. Linear Neural Networks¶
Before we get into the details of deep neural networks, we need to cover the basics of neural network training. In this chapter, we will cover the entire training process, including defining simple neural network architectures, handling data, specifying a loss function, and training the model. In order to make things easier to grasp, we begin with the simplest concepts. Fortunately, classic statistical learning techniques such as linear and softmax regression can be cast as linear neural networks. Starting from these classic algorithms, we will introduce you to the basics, providing the basis for more complex techniques in the rest of the book.
- 3.1. Linear Regression
- 3.2. Linear Regression Implementation from Scratch
- 3.3. Concise Implementation of Linear Regression
- 3.3.1. Generating the Dataset
- 3.3.2. Reading the Dataset
- 3.3.3. Defining the Model
- 3.3.4. Defining the Loss Function
- 3.3.5. Defining the Optimization Algorithm
- 3.3.6. Instantiate Configuration and Trainer
- 3.3.7. Initializing Model Parameters
- 3.3.8. Metrics
- 3.3.9. Training
- 3.3.10. Saving Your Model
- 3.3.11. Summary
- 3.3.12. Exercises
- 3.4. Softmax Regression
- 3.5. The Image Classification Dataset
- 3.6. Implementation of Softmax Regression from Scratch
- 3.7. Concise Implementation of Softmax Regression