Book Image

Deep Learning with fastai Cookbook

By : Mark Ryan
Book Image

Deep Learning with fastai Cookbook

By: Mark Ryan

Overview of this book

fastai is an easy-to-use deep learning framework built on top of PyTorch that lets you rapidly create complete deep learning solutions with as few as 10 lines of code. Both predominant low-level deep learning frameworks, TensorFlow and PyTorch, require a lot of code, even for straightforward applications. In contrast, fastai handles the messy details for you and lets you focus on applying deep learning to actually solve problems. The book begins by summarizing the value of fastai and showing you how to create a simple 'hello world' deep learning application with fastai. You'll then learn how to use fastai for all four application areas that the framework explicitly supports: tabular data, text data (NLP), recommender systems, and vision data. As you advance, you'll work through a series of practical examples that illustrate how to create real-world applications of each type. Next, you'll learn how to deploy fastai models, including creating a simple web application that predicts what object is depicted in an image. The book wraps up with an overview of the advanced features of fastai. By the end of this fastai book, you'll be able to create your own deep learning applications using fastai. You'll also have learned how to use fastai to prepare raw datasets, explore datasets, train deep learning models, and deploy trained models.
Table of Contents (10 chapters)

Chapter 8: Extended fastai and Deployment Features

So far in this book, you have learned how to ingest and explore datasets using fastai, how to train fastai models with tabular, text, and image datasets, and how to deploy fastai models. Throughout the book so far, the emphasis has been on covering as much of the functionality of fastai as possible using the highest-level fastai API. In particular, we have emphasized using dataloaders objects as the basis for defining the datasets used to train the model. Up to this point in the book, we have taken the happy path whenever possible. To demonstrate how to accomplish tasks using fastai, we have chosen the most straightforward way possible.

In this chapter, we are going to take some steps off the happy path to explore additional features of fastai. You will learn how to track what is happening with your model more closely, how to control the training process, and generally how to take advantage of more of the capabilities that fastai...