3.2. Object-Oriented Design for Implementation — Dive into Deep Learning 1.0.3 documentation
In our introduction to linear regression, we walked through various components including the data, the model, the loss function, and the optimization algorithm. Indeed, linear regression is one of the simplest machine learning models. Training it, however, uses many of the same components that other models in this book require. Therefore, before diving into the implementation details it is worth designing some of the APIs that we use throughout. Treating components in deep learning as objects, we can start by defining classes for these objects and their interactions. This object-oriented design for implementation will greatly streamline the presentation and you might even want to use it in your projects. Inspired by open-source libraries such as PyTorch Lightning, at a high level we wish to have three classes: (i) Module contains models, losses, and optimization methods; (ii) DataModule provides data loaders for training and validation; (iii) both classes are combined using the Trainer
3.2. Object-Oriented Design for Implementation — Dive into Deep Learning 1.0.3 documentation 3.2. Object-Oriented Design for Implementation ¶ Colab [pytorch] Open the notebook in Colab Colab [mxnet] Open the notebook in Colab Colab [jax] Open the notebook in Colab Colab [tensorflow] Open the notebook in Colab SageMaker Studio Lab Open the notebook in SageMaker Studio Lab In our introduction to linear regression, we walked through various components including the data, the model, the loss function, and the optimization algorithm. Indeed, linear regression is one of the simplest machine le
Explore this link on the map →related reading
- The Little Book of Deep Learningfleuret.org
- Practical Deep Learning for Coders - Practical Deep Learningcourse.fast.ai
- Chapter 0: Fundamentals - ARENAlearn.arena.education
- A Recipe for Training Neural Networkskarpathy.github.io
- Chapter 0: Fundamentals - ARENAlearn.arena.education
- NL.pdfabehrouz.github.io
- Building Models with PyTorch — PyTorch Tutorials 2.13.0+cu130 documentationpytorch.org
- Neural Networks, Types, and Functional Programming -- colah's blogcolah.github.io
- A Recipe for Training Neural Networkskarpathy.github.io
- GitHub - jacobhilton/deep_learning_curriculum: Language model alignment-focused deep learning curriculum · GitHubgithub.com
- Learning PyTorch with Examples — PyTorch Tutorials 2.12.0+cu130 documentationpytorch.org
- GitHub - google-research/tuning_playbook: A playbook for systematically maximizing the performance of deep learning models. · GitHubgithub.com