Collection of a variety of Deep Learning (DL) code examples, tutorial-style Jupyter notebooks, and projects.
Quite a few of the Jupyter notebooks are built on Google Colab and may employ special functions exclusive to Google Colab (for example uploading data or pulling data directly from a remote repo using standard Linux commands).
Here is the Github Repo.
pip install numpy)
pip install pandas)
pip install matplotlib)
pip install tensorflowor
pip install tensorflow-gpu)
Of course, to use a local GPU correctly, you need to do lot more work setting up proper GPU driver and CUDA installation.
If you are using Ubuntu 18.04, here is a guide.
If you are on Windows 10, here is a guide
It is also highly recommended to install GPU version in a separate virtual environment, so as to not mess up the default system install.
pip install keras)
NOTE: Most of the Jupyter notebooks in this repo are built on Google Colaboratory using Google GPU cluster and a virtual machine. Therefore, you may not need to install these packages on your local machine if you also want to use Google colab. You can directly launch the notebooks in your Google colab environment by clicking on the links provided in the notebooks (of course, that makes a copy of my notebook on to your Google drive).
For more information about using Google Colab for your deep learning work, check their FAQ here.
I created a utility function file called
DL_utils.py in the
utils directory under
Notebooks. We use functions from this module whenever possible in the Jupyter notebooks.
You can download the module (raw Python file) from here: DL-Utility-Module
I also implemented a general-purpose trainer module (
NN_trainer.py) for regression task with tabular datasets. The idea is that you can simply read a dataset (e.g. a CSV file), choose the input and target variables, build a densely-connected neural net, train, and predict. The module gives you back a prediction function (trained) which can be used for any further prediction, analytics, or optimization task.
ImageDataGeneratorand other utilities
Horse or human image classification using Keras
ImageDataGenerator and Google colaboratory platform. (Here is the Notebook)
Classification on the flowers dataset and the famous Caltech-101 dataset using
flow_from_directory() method of the
ImageDataGenerator. Illustrates how to streamline CNN model building from a single storage of image data using these utility methods. (Here is the Notebook)
Keractlibrary. (Here is the Notebook)
ReduceLROnPlateau. You can also change a single parameter to generate ResNet of various depths. (Here is the Notebook).