Deep Learning with Python (2nd Edition) cover

Deep Learning with Python (2nd Edition)

Rating 4.7
Word count
638K words
Chapters
18
Series
Turing Program Design Series
ISBN
9787115597175

Tags

Summary

Written by François Chollet, creator of the deep learning framework Keras, this book is the Chinese translation of the second edition of "Deep Learning with Python," translated by Zhang Liang. The book has 14 chapters and continues the first edition's approach of "explaining principles through code," avoiding heaps of mathematical symbols and instead using runnable Python code and intuitive diagrams to explain the core ideas of deep learning. Chapters 1–2 outline the relationship among artificial intelligence, machine learning, and deep learning, and introduce mathematical foundations such as tensors, tensor operations, gradient descent, and backpropagation. Chapter 3 uses TensorFlow 2 and Keras to introduce the composition of neural networks and the compile, train, and evaluate interfaces. Chapters 4–7 use examples such as news classification and housing price regression to explain classification and regression basics, general machine learning principles (generalization, evaluation, regularization, hyperparameter tuning), the universal machine learning workflow, and advanced Keras usage (model subclassing, custom training loops, tf.function). Chapters 8–9 enter computer vision, covering convolution operations, training on small datasets, feature extraction and fine-tuning with pretrained models, residual connections, depthwise separable convolutions, and visual interpretation of convolutional networks. Chapters 10–11 handle time series and text respectively, explaining RNNs, LSTMs, bidirectional RNNs, bag-of-words and sequence text representations, and the Transformer architecture and sequence-to-sequence learning. Chapter 12 introduces text generation, DeepDream, neural style transfer, variational autoencoders, and generative adversarial networks. Chapter 13 discusses engineering practices such as hyperparameter optimization, model ensembling, mixed precision, and multi-GPU and TPU training. Chapter 14 reviews key concepts and discusses the limitations and future of deep learning. Compared with the first edition, this edition is substantially rewritten and adds a chapter on advanced Keras, the universal machine learning workflow, Transformer and modern network architecture patterns, and practical best practices.

Editor's review

如果只能推荐一本深度学习入门书,很多从业者会给出这本书的名字。作者弗朗索瓦·肖莱既是 Keras 的创造者,也是长期活跃在一线的研究者,因此他既能说清“官方推荐的写法”,也能解释“为什么这样设计”。第二版并非简单修订:全书 14 章中有相当篇幅被重写或新增,补齐了第一版之后领域内最关键的几项变化——TensorFlow 2 与 Keras 的整合、机器学习通用工作流程的系统化总结、残差连接与深度可分离卷积等现代架构模式、Transformer 与自注意力机制,以及超参数优化、模型集成、混合精度、多 GPU 与 TPU 训练等落地技巧。最难得的是,它几乎没有把读者挡在数学公式之外:张量、梯度、反向传播这些概念都用几行 Python 代码和几何直觉讲透,读完可以直接动手跑通图像分类、时间序列预测、文本分类与生成等任务。第 14 章对深度学习局限性的讨论尤其值得一读,它提醒读者不要把模型拟人化,也不要把“局部泛化”误当成真正的智能。译文流畅,术语规范,图灵教育的排版与图示质量也保持了系列一贯水准。对于想在 2022 年之后的技术环境下认真学一遍深度学习的人,这本 600 多页的书依然是性价比极高的选择。

Who it's for

A good fit for

  • 有 Python 基础、想系统入门深度学习的开发者与在读学生
  • 已经用过 Keras 或 TensorFlow,但缺乏系统知识框架的工程师
  • 从事计算机视觉、自然语言处理,需要补全原理与工程实践的数据从业者
  • 希望了解 Transformer 与现代网络架构、又不想被公式劝退的技术管理者

Not a good fit for

  • 完全没有编程经验、也未接触过 Python 的零基础读者
  • 只想找一本数学推导严谨、以理论证明为主线的深度学习教材的读者
  • 希望直接学习 PyTorch 生态、不打算使用 Keras 或 TensorFlow 的读者

Reading tips

  1. 按章节顺序阅读,第 2 章与第 3 章是全书地基,动手复现书中的第一个例子再往下读
  2. 边读边在本地或 Colab 环境跑代码,每章至少完整训练一个模型,避免只“看懂”不动手
  3. 第 5、6、13 章可反复回看,它们讲的是评估、调参与工程实践,实际做项目时最常查阅
  4. 若时间有限,可先读第 1、2、3、4 章建立框架,再按自己的方向选读视觉、序列或生成式章节

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Preface
  2. Acknowledgments
  3. About This Book
  4. About the Cover
  5. Chapter 1 What Is Deep Learning?
  6. Chapter 2 The Mathematical Building Blocks of Neural Networks
  7. Chapter 3 Getting Started with Keras and TensorFlow
  8. Chapter 4 Getting Started with Neural Networks: Classification and Regression
  9. Chapter 5 Fundamentals of Machine Learning
  10. Chapter 6 The Universal Workflow of Machine Learning
  11. Chapter 7 Advanced Keras
  12. Chapter 8 Getting Started with Deep Learning for Computer Vision
  13. Chapter 9 Advanced Deep Learning for Computer Vision
  14. Chapter 10 Deep Learning for Time Series
  15. Chapter 11 Deep Learning for Text
  16. Chapter 12 Generative Deep Learning
  17. Chapter 13 Best Practices for the Real World
  18. Chapter 14 Conclusion

FAQ

这本书和第一版差别大吗?需要两本都买吗?
差别很大。第二版基于 TensorFlow 2 与 Keras 全面重写,新增 Keras 深入使用、机器学习通用工作流程、Transformer、现代网络架构模式与工程最佳实践等内容,共 14 章。作者本人也说它“更像一本新书”。已有第一版的读者仍值得入手第二版,旧版可留作参考。
读这本书需要什么数学基础?
作者刻意避免使用数学符号,用 Python 代码和几何直觉解释核心概念,因此只需了解高中程度的函数、向量概念即可入门。不过第 2 章的梯度与反向传播部分仍建议慢慢读,配合代码运行理解会更牢。
书中的代码基于什么框架和版本?
第二版围绕 TensorFlow 2 与 Keras 展开,书中示例涵盖图像分类与分割、时间序列预测、文本分类、机器翻译、文本生成等任务。代码可在配套资源中获取。由于框架迭代较快,个别 API 可能需要按官方文档做小幅调整。
这本书适合当作高校教材吗?
适合。全书结构清晰、每章附小结,第 4 至 7 章的知识组织接近课程讲义,国内已有多所院校将其列为深度学习或机器学习课程的参考书。若用于教学,可按学期取舍第 9 至 12 章的部分内容。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

Top rated in the same category