Basically, refer to http://deeplearning.net/software/theano/install_ubuntu.html#install-ubuntu.
Click here for how to install Mac with homebrew (http://qiita.com/items/da475b4cc8e5875c73d0). Somehow, MBP of Core i5 is faster than Xeon a little while ago, so if you do not use GPGPU, you will feel like using MLP. .. ..
$ sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git
$ sudo pip install Theano
Note that in Ubuntu 12.04, if you include libatlas-dev, the dependency will be broken.
Each version is as follows
Numpy: 1.6.1
Scipy: 0.9.0
Test packages
Two Scipy tests fail. test_io.test_imread is a known issue and is probably okay. http://stackoverflow.com/questions/9239989/error-when-testing-scipy test_morestats.TestAnderson is also a known issue, you can apply the following patch
https://github.com/scipy/scipy/commit/89c88431e648369d4a15b4fd4e762a28eb86abd8#diff-0 http://comments.gmane.org/gmane.comp.python.scientific.user/30283
ImportError: /usr/lib/liblapack.so.3gf: undefined symbol: ATL_chemv
If you see, please follow the steps below. Because the same .so can be installed in multiple packages and the dependencies cannot be resolved
$ sudo apt-get remove libopenblas-base
Speed test Theano/BLAS on Ubuntu 12.04
http://stackoverflow.com/questions/8917977/installing-lapack-for-numpy
By the way, lapack, atlas, and openblas are around the demon gate. For the time being, if you can use apt-get or yum, you should leave it to the package management system even if you use EPEL. If you try to install from source without skills, it will collapse for a day. Useless.
speed test
Do a speed test with the following command to see if it works with blas.
$ python /usr/local/lib/python2.7/dist-packages/theano/misc/check_blas.py
DeepLearning examples $ git clone http://github.com/lisa-lab/DeepLearningTutorials
You can now download the example from Deep Learning Tutorials.
See Getting Started for the characteristics of the data used, and here for the basic methods. please.
Recommended Posts