This tutorial does what most Most Machine Learning tutorials online do not. This is not a 30 minute tutorial which teaches you how to "Train your own neural netowrk" or "Learn deep learning under 30 minutes". This is a full pipeline that needs to be done if working with machine learning. This tutorial introduces all the parts, and all the implementation decisions and details that need to be made. The dataset is not one of the standard sets like MNIST or CIFAR, we will make our own dataset. Then we will go through a couple of conventional machine learning algorithms before we get to deep learning!
In the fall of 2016, I was a Teaching Fellow (Harvard's version of TA) for the graduate class on "Advanced Topics in Data Science (CS209/109)" at Harvard University. I was in-charge of designing the class project for the students, and this tutorial was built on top of the project I designed for the class.
If you would like to use this work, please cite the work using the doi -
To view the project as an HTML file, visit - https://spandan-madan.github.io/DeepLearningProject/
If you would like to access to Code, please go through the ipython notebook 'Deep_Learning_Project.ipynb'
Python
- We will be using Python 2.7. Primary reason is that Tensorflow is not compatible with python > 3.5, and some other libraries are not compatible with python 3.
To make setup easy, we use conda.
- Install conda 3 from https://www.continuum.io/downloads
- The repository has a conda config file which makes setting up super easy. It's the file 'deeplearningproject_environment.yml'
- Then create a new conda environment using the command with 'conda env create -f deeplearningproject_environment.yml'
- Now, activate the environment with - 'source activate deeplearningproject'
If all the isntallations go through, you are good to go! If not, here is a list of packages that need to be installed: requests imDbPy wget tmdbsimple seaborn sklearn Pillow keras tensorflow h5py gensim nltk stop_words
To be able to run the environment you just created on a juputer notebook, first check that you have the python package 'ipykernel' installed. If you don't simply install it using 'pip install ipykernel'. Now, add this to your jupyter notebook using the command 'python -m ipykernel install --user --name deeplearningproject --display-name "deeplearningproject"'
Needless to say, remove all single quotes before running commands
I will keep updating this as issues pop up on this repository.
- One known bug is because Keras 2.0 is not compatible with some Keras 1.2 functionalities. You may run into errors with importing VGG16. If so, just update keras using the following command - 'sudo pip install git+git://github.com/fchollet/keras.git --upgrade'
Hope this repo introduces you full machine learning pipeline! If you spot an error, please create an issue to help out others using this resource! To prevent problems with installation and setting up, this repository comes with a conda environment profile. The only thing you need is to install the newest version of conda, and use this profile to create a new environment and it will set up all the libraries you need for the tutorial.
