本步骤能实现用Intel核芯显卡来进行显示, 用NVIDIA GPU进行计算。
安装开发所需要的一些基本包
sudo apt-get install build-essential
sudo apt-get install vim cmake git
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev| from subprocess import Popen, PIPE | |
| from docx import opendocx, getdocumenttext | |
| #http://stackoverflow.com/questions/5725278/python-help-using-pdfminer-as-a-library | |
| from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter | |
| from pdfminer.converter import TextConverter | |
| from pdfminer.layout import LAParams | |
| from pdfminer.pdfpage import PDFPage | |
| from cStringIO import StringIO |
| '''Implementation and Demostration of Dynamic Time Warping | |
| Requires : python 2.7.x, Numpy 1.7.1, Matplotlib, 1.2.1''' | |
| from math import * | |
| import numpy as np | |
| import sys | |
| def DTW(A, B, window = sys.maxint, d = lambda x,y: abs(x-y)): | |
| # create the cost matrix | |
| A, B = np.array(A), np.array(B) |
| #!/opt/anaconda3/bin/python | |
| # -*- coding:utf-8 -*- | |
| # Created by Enigma on 2016/9/26 | |
| """ | |
| Verify the mechanism of gradients update operation during asynchronous training in between-graph approach. | |
| Run: | |
| # ps | |
| /opt/anaconda3/bin/python async_grad_test.py --ps_hosts=localhost:1024 --worker_hosts=localhost:1025,localhost:1026 --job_name=ps --task_index=0 | |
| # workers | |
| /opt/anaconda3/bin/python async_grad_test.py --ps_hosts=localhost:1024 --worker_hosts=localhost:1025,localhost:1026 --job_name=worker --task_index=0 |
| #!/opt/anaconda3/bin/python | |
| # -*- coding:utf-8 -*- | |
| # Created by Enigma on 2016/9/26 | |
| """ | |
| Verify the mechanism of gradients update operation during asynchronous training in between-graph approach. | |
| Run: | |
| # ps | |
| /opt/anaconda3/bin/python async_grad_test.py --ps_hosts=localhost:1024 --worker_hosts=localhost:1025,localhost:1026 --job_name=ps --task_index=0 | |
| # workers | |
| /opt/anaconda3/bin/python async_grad_test.py --ps_hosts=localhost:1024 --worker_hosts=localhost:1025,localhost:1026 --job_name=worker --task_index=0 |
简明 Python 教程: http://woodpecker.org.cn/abyteofpython_cn/chinese/
一开始通读一遍这个很不错,是最简单明确的 Python 教程,最适合快速了解。