A Numpy implementation of a Convolutional Neural Network: slow & fast (im2col/col2im).
demo-cnnumpy-fast.ipynb
notebook, the im2col/col2im implementation can achieve an accuracy up to 97.2% in 1 epoch (~6 min). Here are some results:
# On Linux terminal, using virtualenv.
virtualenv myenv
# Activate it.
source myenv/bin/activate
pip install -r requirements.txt
# Tidy up the root folder.
python3 setup.py clean
To play with the demo-notebooks/
files, you need to make sure jupyter notebook can select your virtual environnment as a kernel.
python -m ipykernel install --user--name=myenv
demo_notebooks/
and then select Kernel > Switch Kernel > myenv. You are now ready to go !