The bestselling book on Python deep learning, now covering generative AI, Keras 3, PyTorch, and JAX!
Deep Learning with Python, Third Edition puts the power of deep learning in your hands. This new edition includes the latest Keras and TensorFlow features, generative AI models, and added coverage of PyTorch and JAX. Learn directly from the creator of Keras and step confidently into the world of deep learning with Python.
In Deep Learning with Python, Third Edition you’ll discover:
• Deep learning from first principles
• The latest features of Keras 3
• A primer on JAX, PyTorch, and TensorFlow
• Image classification and image segmentation
• Time series forecasting
• Large Language models
• Text classification and machine translation
• Text and image generation—build your own GPT and diffusion models!
• Scaling and tuning models
With over 100,000 copies sold, Deep Learning with Python makes it possible for developers, data scientists, and machine learning enthusiasts to put deep learning into action. In this expanded and updated third edition, Keras creator François Chollet offers insights for both novice and experienced machine learning practitioners. You'll master state-of-the-art deep learning tools and techniques, from the latest features of Keras 3 to building AI models that can generate text and images.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A hands-on guide to deep learning that takes you from first principles to building your own GPT and diffusion models, written by the creator of Keras. Best for developers, data scientists, and ML enthusiasts who want practical, code-driven mastery of modern deep learning with Keras 3, PyTorch, and JAX.
【Book Arc】
- **Opening (~0%–10%)**: Establishes what deep learning is and why it matters—covering its defining properties (simplicity via automated feature engineering, scalability on GPUs) and the core mechanics of neural networks: layers, weights, loss functions, optimizers, and the training loop.
- **Early (~10%–30%)**: Builds the mathematical and tooling foundations—tensors, tensor operations, gradient-based optimization, stochastic gradient descent—then introduces the three major frameworks (TensorFlow, PyTorch, JAX) and Keras 3, comparing their tensor types, variable/parameter classes, and gradient computation approaches.
- **Early–Middle (~30%–50%)**: Moves into practical model building with classification and regression tasks (movie review sentiment, housing price prediction), covering model definition, compilation, activation functions, validation strategies, and k-fold cross-validation.
- **Middle (~50%–70%)**: Deepens into machine learning fundamentals—overfitting, regularization, and the universal workflow for approaching ML problems—then advances to computer vision with ConvNet architecture patterns including modularity, residual connections, and training on small datasets with data augmentation and pretrained models.
- **Late (~70%–90%)**: Expands into advanced architectures and generative AI—text processing, sequence models, transformers, large language models, text and image generation (building GPT and diffusion models), and time series forecasting.
- **Ending (~90%–100%)**: Covers scaling and tuning models, bringing together the full toolkit for deploying state-of-the-art deep learning workflows.
【Key Takeaways】
- **Deep learning automates feature engineering** (Opening): Unlike shallow learning, which requires manual representation design, deep networks learn all features in one pass—replacing multistage pipelines with end-to-end models.
- **Gradient descent is the engine of learning** (Early): Weights are updated by moving opposite to the gradient of the loss; stochastic gradient descent makes this tractable for networks with thousands to billions of parameters.
- **Keras 3 unifies multiple backends** (Early): The same Keras API works across TensorFlow, PyTorch, and JAX, letting you choose your framework without rewriting model code—though tensor assignment rules and variable classes differ across backends.
- **Representation dimensionality controls model capacity** (Middle): More units per layer allow richer internal representations but risk overfitting; the trade-off between capacity and generalization is central to model design.
- **Validation strategy is as important as architecture** (Middle): Setting aside validation data, using k-fold cross-validation, and monitoring the gap between training and test accuracy are essential for detecting overfitting.
- **ConvNet architecture patterns enable reuse and depth** (Middle): Modularity, hierarchy, residual connections, and pretrained model fine-tuning let you build powerful vision models even with small datasets.
- **Generative AI is within reach** (Late): The book walks through building GPT-style text generators and diffusion models for image generation, connecting transformer and diffusion theory to working code.
- **Scaling and tuning are first-class concerns** (Late): The final stage addresses how to scale models and tune hyperparameters for real-world performance.
【Reading Tips】
- **Deep-read chapters 2–3** (math foundations and framework comparison): These are the conceptual bedrock; skimming them will make later chapters harder to follow.
- **Skim the framework primer if you already know one backend**: The TensorFlow/PyTorch/JAX comparison is valuable for cross-framework fluency, but experienced users can move quickly through familiar material.
- **Work through the code examples actively**: The book is code-driven; typing and running the MNIST, sentiment classification, and ConvNet examples will cement understanding far better than reading alone.
- **Treat the generative AI chapters as a capstone**: They assume everything prior; don't jump ahead unless you're comfortable with transformers and the training loop.
- **Use the universal workflow chapter as a checklist**: Return to it when starting your own projects to avoid common pitfalls in data splitting, validation, and model selection.
【Coverage Limits】
The excerpts cover the book's structure, foundational concepts, framework comparisons, and classification/regression examples well, but detailed content on transformers, GPT construction, diffusion models, and scaling/tuning is only partially represented. Specific chapter titles and advanced implementation details beyond the table of contents are not fully covered in the excerpts.
Page 12
, hierarchy, and reuse 269 9.2 Residual connections 272 9.3 Batch normalization 276 9.4 Depthwise separable convolutions 278 9.5 Putting it together: A mini...
oss_value, W0) can be interpreted as the tensor describing the curvature of loss_value = f(W) around W0. Each partial derivative describes the cur- vature of...
t if your compute_loss() function has more than one input? Let’s say your state contains three variables, a, b, and c, and your loss function has two inputs,...
) Builds the Keras model fold_x_train, model = get_model() (a l re a d y c o m p i le d ) fold_y_train, epochs=num_epochs, Tr a in s t h e m o d e l history...
ct tens of thousands of images, and then someone will need to manually label these images. The people who know how to do this currently work at the cookie fa...
eless_call() to implement our JAX loss function. Since the loss function also computes updates for all non-trainable variables, we name it compute_loss_and_u...
le-looking images. The goal is that at training time, your model will never see the exact same picture twice. This helps expose the model to more aspects of...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Deep Learning with Python, Third Edition (Francois Chollet, Matthew Watson)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Deep Learning with Python, Third Edition (Francois Chollet, Matthew Watson)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment