Purpose of this repo is to demonstrate the fundamentals of Theano. The codes in this repo aims to be clear and contructed from the bottom.
- Theano (numpy): Of course you need
Theano
. To install it, follow the instruction here.numpy
will be installed alongside. - h5py: We use HDF5 data format to save and load the datasets. In some demos, you need
h5py
package. You can install it bypip install h5py
but in case you get some errors and you are using Ubuntu, (I don't know why exactly) you may tryapt-get install python-h5py
.
With the help of matplotlib
, you can visualize the data. Now you might want interactive inspection on the data. For example, you might want to inspect image one by one interactively. You can do this by following code snippet.
from __future__ import print_function
from IPython.html.widgets import interact, interactive, fixed
from IPython.html import widgets
@interact(idx=(0,100))
def viz_data(idx):
code_for_visualizing_the_idx_th_data()
You might want to see an animated view. You can do this using JSAnimation
. You first download JSAnimation
from here. Unzip it and go in to the directory then type sudo python setup.py install
. A simple usage example is demonstrated here.