/deep-learning-intro

Deep Learning introductory workshop in Bremen

Primary LanguageJupyter NotebookMIT LicenseMIT

Exercises for the ROMSOC Deep Learning training course

Here you will find the course exercises as well as the solutions. If you have any question or find any error please write me an email to otero@uni-bremen.de.

Google Colab instructions

1) Create a google account

You need a google account for using Colab.

2) Open Google Colab

Go to https://colab.research.google.com.

3) Get the notebooks

Select the GITHUB tab and type otero-baguer. Then select the deep-learning-intro repository (master branch).

4) Verify

There you will see the notebooks we are going to use for the exercises. Initially try the 00-verify notebook to check that everything works properly.

Local installation instructions

1) Create folder for the exercises

If you are using Git, then this happens automatically, otherwise download a .zip file with the content of the repository and uncompress it. Be careful that you don't loose your own solutions when updating the folder!

2) Install Python

For the exercises we are going to use Python (Miniconda distribution).

The installer files for all platforms (Windows, Lunix, Mac) can be found in:

https://docs.conda.io/en/latest/miniconda.html

Please download the appropiate installer and run it.

  • If your computer has a 64-bit operating system (most likely) select the 64-bit installer for Python 3.7.

  • If your system has a 32-bit operating system (unlikely) you will need to install the 32-bit installer for Python 3.7.

  • If you get asked if you want to add the Miniconda directory to the PATH select yes.

Confirm that you have successfully installed Miniconda by opening a console and typing conda. If an error appears then Conda was not added to the PATH. You have to search for the Anaconda Promt terminal and open it. Then you have to change the directory the terminal is pointing to, using for example cd local_folder\local_folder2, to the directory that contains the exercises.

3) Install required packages

  1. Open a console on the folder where you have the repo and create a virtual environment by running conda create --name dl_intro.

  2. Activate the environment with the command conda activate dl_intro.

  3. The list of required packages is contained in the file requirements.txt. Install all of them by running the command conda install --file requirements.txt.

  4. Install pytorch. If you have a supported Nvidia GPU on our system run conda install pytorch torchvision cudatoolkit=9.0 -c pytorch. Otherwise just run conda install pytorch torchvision -c pytorch.

4) Run Jupyter Notebook

When everything is installed open a terminal on the exercises folder and run jupyter notebook.

Documentation

Whenever you are programming in any language it is really important to use the documentation to find out what methods are available on each package.

These are some of the package documentations that might be helpful for you in this course:

  • numpy: for scientific computing (vectors and matrices operations)
  • sklearn: for machine learning tasks, includes example datasets and many usefull functions for doing machine learning.

Play online with Neural Networks for binary classification at http://playground.tensorflow.org