1 Star 1 Fork 0

mzw2020 / book

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
CC-BY-SA-4.0

深度学习入门

Build Status Documentation Status Documentation Status

  1. 线性回归
  2. 识别数字
  3. 图像分类
  4. 词向量
  5. 个性化推荐
  6. 情感分析
  7. 语义角色标注
  8. 机器翻译
  9. 生成对抗网络

更多学习内容请访问PaddlePaddle视频课堂

运行这本书

您现在在看的这本书是一本“交互式”电子书 —— 每一章都可以运行在一个Jupyter Notebook里。

我们把Jupyter、PaddlePaddle、以及各种被依赖的软件都打包进一个Docker image了。所以您不需要自己来安装各种软件,只需要安装Docker即可。对于各种Linux发行版,请参考 https://www.docker.com 。如果您使用Windows或者Mac,可以考虑给Docker更多内存和CPU资源

只需要在命令行窗口里运行:

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

会从DockerHub.com下载和运行本书的Docker image。阅读和在线编辑本书请在浏览器里访问 http://localhost:8888

如果您访问DockerHub.com很慢,可以试试我们的另一个镜像hub.baidubce.com:

docker run -d -p 8888:8888 hub.baidubce.com/paddlepaddle/book

使用GPU训练

本书默认使用CPU训练,若是要使用GPU训练,使用步骤会稍有变化。为了保证GPU驱动能够在镜像里面正常运行,我们推荐使用nvidia-docker来运行镜像。请先安装nvidia-docker,之后请运行:

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

或者使用国内的镜像请运行:

nvidia-docker run -d -p 8888:8888 hub.baidubce.com/paddlepaddle/book:latest-gpu

还需要将以下代码

use_cuda = False

改成:

use_cuda = True

贡献内容

您要是能贡献新的章节那就太好了!请发Pull Requests把您写的章节加入到/pending下面的一个子目录里。当这一章稳定下来,我们一起把您的目录挪到根目录。

为了写作、运行、调试,您需要安装Python 2.x和Go >1.5, 并可以用脚本程序来生成新的Docker image。

Note: We also provide English Readme for PaddlePaddle book.

知识共享许可协议
本教程PaddlePaddle 创作,采用 知识共享 署名-相同方式共享 4.0 国际 许可协议进行许可。

# Deep Learning with PaddlePaddle [![Build Status](https://travis-ci.org/PaddlePaddle/book.svg?branch=develop)](https://travis-ci.org/PaddlePaddle/book) [![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](https://github.com/PaddlePaddle/book/blob/develop/README.md) [![Documentation Status](https://img.shields.io/badge/中文文档-最新-brightgreen.svg)](https://github.com/PaddlePaddle/book/blob/develop/README.cn.md) 1. [Fit a Line](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/fit_a_line/README.html) 1. [Recognize Digits](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/recognize_digits/README.html) 1. [Image Classification](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/image_classification/index_en.html) 1. [Word to Vector](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/word2vec/index_en.html) 1. [Recommender System](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/recommender_system/index_en.html) 1. [Understand Sentiment](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/understand_sentiment/index_en.html) 1. [Label Semantic Roles](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/label_semantic_roles/index_en.html) 1. [Machine Translation](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/machine_translation/index_en.html) ## 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](https://www.docker.com/docker-windows). If you are running Mac, please follow [this](https://www.docker.com/docker-mac). 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](http://stackoverflow.com/a/39720010/724872). Just type ```bash 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 hub.baidubce.com: ```bash docker run -d -p 8888:8888 hub.baidubce.com/paddlepaddle/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](https://github.com/NVIDIA/nvidia-docker). Then run: ```bash nvidia-docker run -d -p 8888:8888 paddlepaddle/book:latest-gpu ``` Or you can use the image registry mirror in China: ```bash nvidia-docker run -d -p 8888:8888 hub.baidubce.com/paddlepaddle/book:latest-gpu ``` Change the code in the chapter that you are reading from ```python use_cuda = False ``` to: ```python 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](https://github.com/PaddlePaddle/book/blob/develop/.tools/convert-markdown-into-ipynb-and-test.sh). This tutorial is contributed by <a xmlns:cc="http://creativecommons.org/ns#" href="http://www.paddlepaddle.org/" property="cc:attributionName" rel="cc:attributionURL">PaddlePaddle</a>, and licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.

简介

来自 https://github.com/PaddlePaddle/book/ 展开 收起
CC-BY-SA-4.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mzw2020/book.git
git@gitee.com:mzw2020/book.git
mzw2020
book
book
develop

搜索帮助

344bd9b3 5694891 D2dac590 5694891