OS: Linux: Ubuntu 14.04
安裝:
Pip (Python 2.7.9或以上自帶pip): sudo apt-get install pyton-pip
嘗試安裝scikit-neuralnetwork: 需要 numpy scipy theano
sudo pip install scikit-neuralnetwork
錯誤:SystemError: cannot compile “python.h”. Perhaps you need to install python-dev|python-devel
解決方法:
sudo apt-get update
sudo apt-get upgrade gcc
sudo apt-get install python2.7-dev
- 安裝numpy, scipy, theano:
pip install numpy scipy theano
sudo pip install numpy scipy theano (1:03:32)
錯誤:numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
解決方法:sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
sudo pip install scipy
sudo pip install Theano
- 安裝Pylearn2
sudo pip install -e git+https://github.com/lisa-lab/pylearn2.git#egg=Package
需要git
sudo apt-get install git
- 安裝scikit-neuralnetwork
git clone https://github.com/aigamedev/scikit-neuralnetwork.git
cd scikit-neuralnetwork; python setup.py develop
- 測試
sudo pip install nose
nosetests -v sknn.tests
需要安裝matplotlib: sudo pip install matplotlib
錯誤:The following package could not be built: freetype, png
解決方法:sudo apt-get install libpng-dev
sudo apt-get install libjpeg8-dev
sudo apt-get install libfreetype6-dev
視覺化顯示:
python examples/plot_mlp.py –params activation
在MNIST上測試
python examples/bench_mnist.py (sknn|lasagne)