选用scikit-neuralnetwork进行深度学习
系统:Ubuntu14.04
1、更新系统
sudo apt-get update
sudo apt-get upgrade
2、安装pip
python2.7.9或以上版本自带pip,现用python2.7.6,输入
sudo apt-get install python-pip
3、安装numpy、scipy、theano
sudo apt-get install python2.7-dev
sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran#依赖的包
sudo pip install numpy
sudo pip install scipy
sudo pip install Theano#安装时t大写
4、安装pylearn2
sudo apt-get install git
sudo pip install -e git+https://github.com/lisa-lab/pylearn2.git#egg=Package "#"后面一并输入
5、安装scikit-neuralnetwork
sudo pip install scikit-neuralnetwork
git clone https://github.com/aigamedev/scikit-neuralnetwork.git
cd scikit-neuralnetwork
sudo python setup.py develop
6、测试是否都正常安装
sudo pip install nose
nosetests -v sknn.tests
7、安装matplotlib
sudo apt-get install libpng-dev
sudo apt-get install libjpeg-dev
sudo apt-get install libfreetype6-dev
sudo pip install matplotlib
8、测试matplotlib
python examples/plot_mlp.py --params activation
9、在mnist数据集上测试
python examples/bench_mnist.py sknn