Deep Learning 101 with PaddlePaddle
Switch branches/tags
Nothing to show
Clone or download
shanyi15 Merge pull request #633 from tink2123/fix_07
fix dead links for 07.label_semantic_roles
Latest commit 1685f67 Oct 17, 2018
Permalink
Failed to load latest commit information.
.pre-commit-hooks Move .theme .tmpl/* to .tools/theme Mar 21, 2017
.tools Remove v2 Oct 11, 2018
.travis add .travis/deploy_docs.sh Aug 15, 2018
01.fit_a_line Merge pull request #631 from tink2123/fix_book_typo Oct 12, 2018
02.recognize_digits Merge pull request #630 from shippingwang/wsp-book-py3 Oct 17, 2018
03.image_classification Merge pull request #630 from shippingwang/wsp-book-py3 Oct 17, 2018
04.word2vec Merge pull request #626 from tink2123/fix_references Oct 10, 2018
05.recommender_system Remove v2 Oct 11, 2018
06.understand_sentiment Merge pull request #626 from tink2123/fix_references Oct 10, 2018
07.label_semantic_roles fix dead links for 07.label_semantic_roles Oct 17, 2018
08.machine_translation fix references links Oct 8, 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 Remove v2 Oct 11, 2018
.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 index.cn.html May 19, 2017
.style.yapf pre-commit and travis for book Dec 27, 2016
.travis.yml Update deploy script Aug 15, 2018
README.cn.md fix daedlink in readme (#608) Aug 24, 2018
README.md fix daedlink in readme (#608) Aug 24, 2018
index.cn.html fix "No newline at end of file" Feb 28, 2018
index.html fix the link in book.paddlepaddle.org May 19, 2017

README.md

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 https://www.docker.com. 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 DockerHub.com 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 DockerHub.com, you might try our mirror server docker.paddlepaddlehub.com:

docker run -d -p 8888:8888 docker.paddlepaddlehub.com/book

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 docker.paddlepaddlehub.com/book:latest-gpu

Change the code in the chapter that you are reading from

use_cuda = False

to:

use_cuda = True

Contribute

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.