Deep Learning 101 with PaddlePaddle
HTML Python JavaScript CSS Shell
Clone or download
dzhwinter Merge pull request #583 from JiabinYang/book04_refine
Refine the presentation format for '04.word2vect'
Latest commit 5ecfe40 Jul 19, 2018
Failed to load latest commit information.
.pre-commit-hooks Move .theme .tmpl/* to .tools/theme Mar 21, 2017
.tools 修改: .tools/templates/ Feb 28, 2018
.travis reorganize the catalog Mar 20, 2017
01.fit_a_line insert the header file to match python3 style print() Jul 14, 2018
02.recognize_digits Fix get WITH_GPU bug (#565) Jul 9, 2018
03.image_classification delete additional binary file and refine Jul 14, 2018
04.word2vec fix a chinese style brace Jul 14, 2018
05.recommender_system style: polish the result print style in and Jul 18, 2018
06.understand_sentiment fix: fix bug which inferencer can't be created and stacked_lstm_net c… Jul 18, 2018
07.label_semantic_roles 07 Style: polish print format and some writing Jul 18, 2018
08.machine_translation 08 Style: polish formula and print format Jul 18, 2018
mnist-client Update package.json Feb 28, 2018
paddle @ 77e65d6 Update paddle Mar 17, 2017
pending Move .theme .tmpl/* to .tools/theme Mar 21, 2017
serve change parameters.to_tar(f) in *.md to trainer.save_parameter_to_tar(f) Oct 23, 2017
.dockerignore ignore .git/ in /book because it has problem Sep 13, 2017
.gitignore Add Dockerfile, remove Dockerfile entry from .gitignore Sep 13, 2017
.gitmodules Add blank Mar 17, 2017
.pre-commit-config.yaml auto generate May 19, 2017
.style.yapf pre-commit and travis for book Dec 27, 2016
.travis.yml update IP to new node Apr 2, 2018 Update Feb 28, 2018 Update Feb 28, 2018 fix "No newline at end of file" Feb 28, 2018
index.html fix the link in May 19, 2017

Deep Learning with PaddlePaddle

Build Status Documentation Status Documentation Status

  1. Fit a Line
  2. Recognize Digits
  3. Image Classification
  4. Word to Vector
  5. Recommender System
  6. Understand Sentiment
  7. Label Semantic Roles
  8. Machine Translation

Running the Book

This book you are reading is interactive -- each chapter can run as a Jupyter Notebook.

We packed this book, Jupyter, PaddlePaddle, and all dependencies into a Docker image. So you don't need to install anything except Docker. If you are using Windows, please follow this installation guide. If you are running Mac, please follow this. For various Linux distros, please refer to If you are using Windows or Mac, you might want to give Docker more memory and CPUs/cores.

Just type

docker run -d -p 8888:8888 paddlepaddle/book

This command will download the pre-built Docker image from and run it in a container. Please direct your Web browser to http://localhost:8888 to read the book.

If you are living in somewhere slow to access, you might try our mirror server

docker run -d -p 8888:8888

Training with GPU

By default we are using CPU for training, if you want to train with GPU, the steps are a little different.

To make sure GPU can be successfully used from inside container, please install nvidia-docker. Then run:

nvidia-docker run -d -p 8888:8888 paddlepaddle/book:latest-gpu

Or you can use the image registry mirror in China:

nvidia-docker run -d -p 8888:8888

Change the code in the chapter that you are reading from

paddle.init(use_gpu=False, trainer_count=1)


paddle.init(use_gpu=True, trainer_count=1)


Your contribution is welcome! Please feel free to file Pull Requests to add your chapter as a directory under /pending. Once it is going stable, the community would like to move it to /.

To write, run, and debug your chapters, you will need Python 2.x, Go >1.5. You can build the Docker image using this script. This tutorial is contributed by PaddlePaddle, and licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.