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)

Maintaining your fastai model

Deploying a model is not the end of the story. Once you have deployed a model, you need to maintain the deployment so that it matches the current characteristics of the data on which the model is trained. A thorough description of how to maintain a deep learning model in production is beyond the scope of this book, but it is worthwhile to touch on how to maintain models in the context of the simple model deployments described in this chapter. In this recipe, we will look at actions you could take to maintain the tabular model that you deployed in the Deploying a fastai model trained on a tabular dataset recipe.

Getting ready

Ensure that you have followed the steps in the Setting up fastai on your local system recipe to get fastai installed on your local system. Also ensure that you have the Flask server started for the tabular model deployment by following Steps 1, 2, and 3 from the Deploying a fastai model trained on a tabular dataset recipe.

...