Deep Learning Tutorial 学习平台搭建

来源:互联网 发布:dota2最新比赛数据 编辑:程序博客网 时间:2024/06/07 05:22
原文地址:DeepLearning Tutorial 学习平台搭建作者:iTech

学习Deep Learning Tutorial 0.1 的时候,发现其使用的平台是 Python,由于对 Python 不是很熟悉,于是就把安装的过程记录下来,加深记忆。


System: Ubuntu 12.04 LTS 32 bit​

Hardware: Intel® Core™2 CPU 4300 @ 1.80GHz × 2


安装过程如下:


1、安装 Python;

sudo apt-get install python


​2、安装 BLAS(BasicLinear Algebra Subprograms,基础线性代数程序集)(scipy 依赖于BLAS)

sudo apt-get install libblas-dev


3、安装外加模块 numpy, scipy

sudo apt-get install python-numpy

sudo apt-get install python-scipy


4、安装外加模块 Theano,先用 Git 命令下载 Theano 的安装包(需要先安装 Git:sudo apt-getinstall git),

git clone git://github.com/Theano/Theano.git

或者在这里下载(Git超慢),然后进入 Theano 文件夹,最后在终端下用 python 命令安装。

sudopython setup.py install


到此,软件已经安装结束,接下来下载Deep Learning Tutorial 0.1 提供的程序包,下载方法该文件中已经提供:

git clone git://github.com/lisa-lab/DeepLearningTutorials.git


下载下来后,假如 DeepLearningTutorials 文件位置为:~/DeepLearningTutorials

接下来,进入到 data/ 目录,获取数据集(dataset),

cd ~/DeepLearningTutorials/data/

sh download.sh

然后数据集就会通过 wget 自动下载到 data/ 目录下(非常佩服原作者通过这种方式提供数据集,很巧妙)。


数据集下载完成后,便可以进入到 code/ 目录,运行指南提供的 Demo 程序了。


参考:

一个博客:http://blog.csdn.net/clarkwyn/article/details/8115790

Theano更具体的安装:http://deeplearning.net/software/theano/install.html#install