A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| sudo apt-get -y update | |
| sudo apt-get -y upgrade | |
| sudo apt-get -y dist-upgrade | |
| sudo apt-get -y install git make python-dev python-setuptools libblas-dev gfortran g++ python-pip python-numpy python-scipy liblapack-dev | |
| sudo pip install ipython nose | |
| sudo apt-get install screen | |
| sudo pip install --upgrade git+git://github.com/Theano/Theano.git | |
| wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_5.5-0_amd64.deb | |
| sudo dpkg -i cuda-repo-ubuntu1204_5.5-0_amd64.deb | |
| sudo apt-get update |
| import theano | |
| from pylearn2.models import mlp | |
| from pylearn2.training_algorithms import sgd | |
| from pylearn2.termination_criteria import EpochCounter | |
| from pylearn2.datasets.dense_design_matrix import DenseDesignMatrix | |
| import numpy as np | |
| from random import randint | |
| class XOR(DenseDesignMatrix): |
| import theano | |
| from pylearn2.models import mlp | |
| from pylearn2.train_extensions import best_params | |
| from pylearn2.training_algorithms import sgd, learning_rule | |
| from pylearn2.utils import serial | |
| from pylearn2.termination_criteria import MonitorBased | |
| from pylearn2.datasets.dense_design_matrix import DenseDesignMatrix | |
| from sklearn.preprocessing import StandardScaler | |
| import numpy as np | |
| from random import randint |