推薦使用的超級簡單paddlepaddle機器學習入門

微笑折騰了大半天,最後發現自己只需要這樣的一個環境jupyter:


新手真的不建議去手動編譯什麼的(國內的網絡)硬是搞得殘廢了~~~~


大前提是你成功安裝了docker容器(能夠成功運行hello-world)


一、安裝paddlepaddle/book docker鏡像

houwenbin@houwenbin-GA-6UASL3:~$
houwenbin@houwenbin-GA-6UASL3:~$ docker run -p 8888:8888 paddlepaddle/book
Unable to find image 'paddlepaddle/book:latest' locally
latest: Pulling from paddlepaddle/book
d5c6f90da05d: Already exists 
bbbe761fcb56: Already exists 
7afa5ede606f: Already exists 
f6b7253b56f4: Already exists 
2b8db33536d4: Already exists 
493d753a2466: Pull complete 
dadb73e30a61: Pull complete 
1dbd4fb2d808: Pull complete 
f5d1619a17ab: Pull complete 
5d296564ad1e: Pull complete 
ab8dae01c202: Pull complete 
25f0b8a4662d: Pull complete 
1420185fb301: Pull complete 
29c3511cc1f3: Pull complete 
Digest: sha256:69800a75317f3bcc196a2a5ac7b6f0058f42e5280df04a7c4b225d5c18aff2ca
Status: Downloaded newer image for paddlepaddle/book:latest
[I 09:44:00.530 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
[W 09:44:00.758 NotebookApp] All authentication is disabled.  Anyone who can connect to this server will be able to run code.
[I 09:44:00.764 NotebookApp] Serving notebooks from local directory: /book
[I 09:44:00.764 NotebookApp] 0 active kernels
[I 09:44:00.764 NotebookApp] The Jupyter Notebook is running at:
[I 09:44:00.764 NotebookApp] http://0.0.0.0:8888/
[I 09:44:00.765 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 10:00:54.113 NotebookApp] 302 GET / (10.12.13.51) 0.80ms
[W 10:00:54.796 NotebookApp] 404 GET /i18n/zh-CN/LC_MESSAGES/nbjs.json?v=20171213094400 (10.12.13.51) 12.76ms referer=http://10.12.13.54:8888/tree?
[W 10:00:54.799 NotebookApp] 404 GET /static/components/moment/locale/zh-cn.js?v=20171213094400 (10.12.13.51) 2.91ms referer=http://10.12.13.54:8888/tree?
[W 10:00:57.760 NotebookApp] 404 GET /i18n/zh-CN/LC_MESSAGES/nbjs.json?v=20171213094400 (10.12.13.51) 1.78ms referer=http://10.12.13.54:8888/tree/01.fit_a_line
[W 10:00:57.762 NotebookApp] 404 GET /static/components/moment/locale/zh-cn.js?v=20171213094400 (10.12.13.51) 1.98ms referer=http://10.12.13.54:8888/tree/01.fit_a_line
[I 10:01:05.361 NotebookApp] Writing notebook-signing key to /root/.local/share/jupyter/notebook_secret
[W 10:01:05.364 NotebookApp] Notebook 01.fit_a_line/README.cn.ipynb is not trusted
[W 10:01:05.392 NotebookApp] 404 GET /i18n/zh-CN/LC_MESSAGES/nbjs.json?v=20171213094400 (10.12.13.51) 1.53ms referer=http://10.12.13.54:8888/notebooks/01.fit_a_line/README.cn.ipynb
[W 10:01:05.396 NotebookApp] 404 GET /static/components/moment/locale/zh-cn.js?v=20171213094400 (10.12.13.51) 1.70ms referer=http://10.12.13.54:8888/notebooks/01.fit_a_line/README.cn.ipynb
[W 10:01:05.399 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20171213094400 (10.12.13.51) 1.73ms referer=http://10.12.13.54:8888/notebooks/01.fit_a_line/README.cn.ipynb
[I 10:01:06.100 NotebookApp] Kernel started: c48d745d-0936-472a-9109-932b55c0fa0f
[I 10:01:06.107 NotebookApp] 302 GET /notebooks/01.fit_a_line/image/train_and_test.png (10.12.13.51) 1.15ms
[I 10:01:06.108 NotebookApp] 302 GET /notebooks/01.fit_a_line/image/ranges.png (10.12.13.51) 1.09ms
[I 10:01:06.110 NotebookApp] 302 GET /notebooks/01.fit_a_line/image/predictions.png (10.12.13.51) 1.07ms
[I 10:01:06.724 NotebookApp] Adapting to protocol v5.1 for kernel c48d745d-0936-472a-9109-932b55c0fa0f
I1213 10:01:25.377439    15 Util.cpp:166] commandline:  --use_gpu=False --trainer_count=1 
I1213 10:01:46.085991    15 GradientMachine.cpp:94] Initing parameters..
I1213 10:01:46.086041    15 GradientMachine.cpp:101] Init parameters done.
[I 10:03:06.129 NotebookApp] Saving file at /01.fit_a_line/README.cn.ipynb
[I 10:03:09.196 NotebookApp] Starting buffering for c48d745d-0936-472a-9109-932b55c0fa0f:DAD4BF56351A45059C491AC29D3E6DA0

二、瀏覽器打開 http://10.12.13.54:8888/ 開始paddlepaddle機器學習之旅吧!!!


題外話:

突然源碼的時候,發現了CTC Loss原來這個是百度美研院開發的啊,贊一個!


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章