Neural Networks – 2017/2018
This page contains the material for the lab sessions that I hold in the Neural Networks course taught by Prof. Aurelio Uncini for the M.Sc. in Artificial Intelligence and Robotics. For general informations about the course please refer to the original web pages.
All lab sessions require a working installation of Python 3.5 (or higher) with (at least) Jupyter, NumPy, matplotlib, and scikit-learn (for the second and third labs). If you are starting from scratch, installing the Anaconda platform is the recommended method to have a working installation with all prerequisites. Alternatively, Canopy offers a working license by registering with the academic email. If you prefer a minimal installation, after installing Python and the pip module to manage libraries (e.g., following this guide on Ubuntu systems), you can install all prerequisites by running the following command on the console:
pip install numpy matplotlib sklearn jupyter
Lab session 1 – Python & NumPy
This lab session aims at gaining some familiarity with Python, NumPy (for linear algebra), and SciPy.
Lab session 2 – Linear regression and classification
This lab session has two main notebooks:
- Linear regression in NumPy with artificial data.
- Logistic regression using the AutoGrad library for automatic gradient computation.
Lab session 3 – Neural network with Autograd
In this lab session, we implemented a simple feedforward neural network for a multi-class classification problem using the Autograd library.
Lab session 4 – TensorFlow basics
In this lab session we introduced the basic elements of the low-level interface of TensorFlow and some concepts of Keras.