-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.sh
67 lines (56 loc) · 2.57 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
sudo apt-get --yes install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev liblapack-dev git mc vim > apt-get.cout 2> apt-get.cerr
# Check the latest deb at https://developer.nvidia.com/cuda-downloads
wget http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda-repo-ubuntu1404-7-5-local_7.5-18_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404-7-5-local_7.5-18_amd64.deb
sudo apt-get update
sudo apt-get install cuda
sudo reboot
# check:
/usr/local/cuda-7.5/bin/nvcc --version
# This installs a Theano that's newer than regular pip install, actually this one:
# git+https://github.com/Theano/Theano.git@15c90dd3#egg=Theano==0.8.git
sudo pip install -r https://raw.githubusercontent.com/Lasagne/Lasagne/v0.1/requirements.txt
# if you have this repo available, copy or copypaste:
cp daniel-experiments/kohonen/theanorc.txt .theanorc
# check:
python -c "import numpy; numpy.test()"
python `python -c "import os, theano; print os.path.dirname(theano.__file__)"`/misc/check_blas.py
sudo pip install Lasagne==0.1
# Libs required for matplotlib that comes with nolearn.
# scikit-learn also comes with nolearn.
sudo apt-get install libpng-dev
sudo apt-get install libfreetype6-dev
sudo pip install git+https://github.com/dnouri/nolearn.git@master#egg=nolearn==0.7.git
# otherwise matplotlib wants to communicate with nonexisting X11:
mkdir .matplotlib
echo "backend : Agg" > .matplotlib/matplotlibrc
# cuDNN
# Login to NVIDIA, get cuDNN 4.0 for Linux x64:
open https://developer.nvidia.com/cudnn
# or simply take my cached one:
wget people.mokk.bme.hu/~daniel/tmp/cudnn-7.0-linux-x64-v4.0-prod.tgz
cd /usr/local/
sudo tar zxvf ~/cudnn-7.0-linux-x64-v4.0-prod.tgz
cd
mkdir .ssh
ssh-keygen -t rsa -b 4096 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
# Now add ~/.ssh/id_rsa.pub to github settings.
git config --global user.email "[email protected]"
git config --global user.name "Daniel Varga"
# Spearmint
git clone [email protected]:HIPS/Spearmint.git
sudo pip install -e Spearmint
sudo apt-get install mongodb
sudo pip install pymongo
sudo service mongod start
git clone [email protected]:danielvarga/daniel-experiments.git
# check:
time python daniel-experiments/kohonen/testNumpyToTheano.py > cout
# -> 9.5 secs for testSampleInitial(), 6.7 secs with allow_gc=False.
# test() minimal distances theano finishes in 0.263873 seconds.
wget http://deeplearning.net/data/mnist/mnist.pkl.gz
mv mnist.pkl.gz daniel-experiments/rbm/data/
cd daniel-experiments/kohonen
python Spearmint/spearmint/main.py . > spearmintOutput/log.cout 2> spearmintOutput/log.cerr