Python Neural Network Programming cover

Python Neural Network Programming

Rating 4.7
Chapters
30
Series
Asynchronous Books · Deep Learning Series
ISBN
9787115474810

Tags

Summary

This book is the Chinese translation of Make Your Own Neural Network by the British technical author Tariq Rashid, translated by Lin Ci and published by Posts & Telecom Press in 2018 as part of the "Asynchronous Books · Deep Learning Series." Taking "write a neural network from scratch" as its throughline, the book deliberately avoids difficult mathematical derivations and explains, layer by layer and in language a secondary-school student can follow, how a neural network works. Chapter 1 begins with "a simple predicting machine," first building a linear classifier, then showing why a single classifier cannot solve complex problems, and from there introduces neurons, tracking signals between layers, what matrix multiplication is for, and how a multilayer network updates weights by back-propagating errors. Chapter 2 moves into practice, introducing the basic use of Python and IPython and leading readers step by step to build their own three-layer neural network in Python 3, then train and test it on the MNIST handwritten-digit dataset to check its recognition performance. Chapter 3 opens the "black box" of the trained network a little further, observing its weights and intermediate layers, trying it on one's own handwritten digits, and expanding the training data by rotating images. The appendixes add a primer on calculus and instructions for running the code on a Raspberry Pi. The book runs to about 200 pages and includes color illustrations; its emphasis is on getting hands-on code running rather than listing formulas, making it an introductory neural-network book suitable for complete beginners.

Editor's review

市面上的深度学习书大多从框架讲起,动辄调用几行API就“训完了一个模型”,读者却始终不清楚网络内部发生了什么。这本书反其道而行:不借助任何深度学习框架,只用Python标准库和一点矩阵运算,陪读者从零写一个能识别手写数字的神经网络。 它的难得之处在于“降门槛而不降内容”。反向传播通常是最劝退的一章,作者却先用一个简单的预测机、一个线性分类器打底,再用图示一步步把误差如何回流、权重为何这样更新讲透;连微积分都另设附录从“一条直线”讲起。全书不到220页,配彩图,读完大约只需几个周末,却能真正获得“我懂了”的踏实感。 如果你曾被公式和框架挡在门外,这本书是很好的第一块踏板:先亲手造一个小网络,再去学TensorFlow或PyTorch,理解会完全不同。

Who it's for

A good fit for

  • 有中学数学基础、想真正弄懂神经网络原理的零基础读者
  • 会一点Python、但没接触过机器学习的程序员
  • 被深度学习框架“黑箱”困扰、想拆开看内部的学生
  • 准备用树莓派做小型AI实验的创客与爱好者

Not a good fit for

  • 希望直接学习TensorFlow、PyTorch等框架实战的读者
  • 需要CNN、RNN、Transformer等前沿模型系统讲解的研究者
  • 追求工业级工程部署与调优经验的技术人员

Reading tips

  1. 务必边读边敲代码,本书价值大半在动手复现,光看不练收获有限。
  2. 第1章的矩阵与求导若卡住,可先跳到附录A补微积分再回头。
  3. 把MNIST跑通后,试着换自己的手写数字或改网络层数,观察准确率变化。
  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. Chapter 1 How Neural Networks Work
  2. A Time for Every Purpose
  3. A Simple Predicting Machine
  4. Classifiers Are Much the Same as Predictors
  5. Training a Simple Classifier
  6. Sometimes One Classifier Is Not Enough
  7. Neurons—Nature's Computing Machines
  8. Tracking Signals in a Neural Network
  9. Frankly, Matrix Multiplication Is Very Useful
  10. An Example Three-Layer Neural Network Using Matrix Multiplication
  11. Learning Weights from Multiple Nodes
  12. Back-Propagating Errors from Multiple Output Nodes
  13. Back-Propagating Errors Through More Layers
  14. Back-Propagating Errors Using Matrix Multiplication
  15. How We Actually Update Weights
  16. A Successful Example of Weight Updating
  17. Preparing the Data
  18. Chapter 2 DIY with Python
  19. Python
  20. Interactive Python = IPython
  21. Getting Started with Python Gracefully
  22. Building a Neural Network in Python
  23. The MNIST Handwritten Digit Dataset
  24. Chapter 3 Much Fun
  25. Your Own Handwritten Digits
  26. Inside the Neural Network's Brain
  27. Creating New Training Data: Rotating Images
  28. Closing Words
  29. Appendix A A Brief Introduction to Calculus
  30. Appendix B Working with a Raspberry Pi

FAQ

这本书需要什么数学基础?
作者定位为只需中学数学,书中涉及矩阵乘法和求导,但都用图示和直观语言解释,附录A还专门从直线斜率讲起补充微积分,没有基础也能跟上,只是需要多花点时间。
零编程基础能读吗?
有一定Python基础会更顺畅。第2章会介绍Python与IPython的基本用法,但篇幅有限,完全没写过代码的读者建议先补一门Python入门课,再来动手写网络。
书里的代码用什么版本、需要装框架吗?
书中使用Python 3,仅依赖numpy等基础库,不依赖TensorFlow或PyTorch,重点是让读者看清每一步运算;附录还介绍了在树莓派上安装IPython并运行的方法。
内容会不会太浅,学完能做什么?
本书目标是打通原理,覆盖三层全连接网络、反向传播与MNIST识别。学完可以独立实现小型网络,但不涉及卷积、循环网络等结构,属于进阶前的扎实起点。
这个“免费试读版”和正式版有什么区别?
网络流传的“免费试读版 手把手教你用Python写神经网络编程”是同一本书的非正式电子版标注,内容对应人民邮电出版社2018年版《Python神经网络编程》(ISBN 9787115474810),建议以正版纸书或电子书为准。

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.

More by the same author

Top rated in the same category