explaingit

fchollet/deep-learning-with-python-notebooks

20,094Jupyter NotebookAudience · developerComplexity · 2/5QuietLicenseSetup · moderate

TLDR

Jupyter notebooks with runnable code examples from the book 'Deep Learning with Python,' covering neural networks, image classification, transformers, and text generation using Keras 3.

Mindmap

mindmap
  root((repo))
    What it does
      Code examples
      Runnable notebooks
      Book companion
    Topics covered
      Neural networks
      Image classification
      Transformers
      Text generation
    Tech stack
      Keras 3
      JAX/TensorFlow/PyTorch
      Jupyter notebooks
    How to use
      Google Colab
      Free GPU access
      No local setup
    Audience
      Deep learning learners
      Students
      Practitioners

Things people build with this

USE CASE 1

Run code examples from the Deep Learning with Python book while reading each chapter.

USE CASE 2

Experiment with neural network architectures like CNNs and Transformers in a free cloud environment.

USE CASE 3

Learn image classification, text generation, and time series forecasting with working code you can modify.

USE CASE 4

Train deep learning models on GPU without installing software locally using Google Colab.

Tech stack

Keras 3JAXTensorFlowPyTorchJupyter NotebookPython

Getting it running

Difficulty · moderate Time to first run · 30min

Requires installing multiple deep learning backends (JAX, TensorFlow, PyTorch) and Keras 3; GPU optional but recommended for training examples.

Use freely for any purpose including commercial, as long as you keep the copyright notice.

In plain English

This repository contains the companion Jupyter notebooks for the book "Deep Learning with Python" by Francois Chollet (the creator of Keras) and Matthew Watson. Each notebook corresponds to a chapter in the book and contains the runnable code examples from that chapter, but without the explanatory text, figures, or pseudocode that appear in the printed book. The repository covers the third edition (2025), the second edition (2021), and the first edition (2017). The notebooks are written using Keras 3, a high-level deep learning library that can run on top of three different underlying frameworks: JAX, TensorFlow, or PyTorch. You choose which one to use by setting an environment variable at the top of the notebook. The code topics covered span the full range of modern deep learning: the mathematical foundations of neural networks, image classification, convolutional network architectures, image segmentation and object detection, time series forecasting, text classification, language models and the Transformer architecture (the foundation of modern AI systems like ChatGPT), text generation, and image generation. The easiest way to run the notebooks is Google Colab, a free browser-based environment that provides GPU access, the heavy computing power needed to train neural networks. No local installation is required. Some chapters use datasets from Kaggle, an online machine learning platform, which requires a free account. You would use this repository alongside the book if you are learning deep learning and want to run and experiment with the code examples as you read. The notebooks are not standalone tutorials without the book.

Copy-paste prompts

Prompt 1
I'm reading 'Deep Learning with Python' chapter 3 on neural networks. Show me how to run the code examples from the companion notebook in Google Colab.
Prompt 2
How do I switch between JAX, TensorFlow, and PyTorch backends in these Keras 3 notebooks?
Prompt 3
I want to experiment with the Transformer architecture notebook. What changes do I need to make to train it on my own text data?
Prompt 4
Walk me through the image classification notebook step-by-step and explain what each code cell does.
Prompt 5
How do I download datasets from Kaggle and use them in these notebooks?
Open on GitHub → Explain another repo

Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.