Lab 1 - Data Preparation, Linear Classification
In this exercise we are going to learn about simple data curation practices, write vectorized code using numpy, build and visualize a simple logistic regression model.
Run online
Recommended approach: the lab excercise is available as a notebook in Google Colab. Open the link and click on Copy to Drive
. After that you can start editing and running your code.
Run locally
Download the notebook from Google Colab by clicking on File -> Download .ipynb
. After this you need to have Jupyter ready in order to run the notebook. requirements.txt is currently not available for this excercise so you are on your own to resolve the dependencies which are used.
Installing Python 3.5+:
To use python3, make sure to install version 3.5 or 3.6 on your local machine. If you are on Mac OS X, you can do this using Homebrew with brew install python3
. You can find instructions for Ubuntu here.
Virtual environment: If you decide to work locally, we recommend using virtual environment for the project. If you choose not to use a virtual environment, it is up to you to make sure that all dependencies for the code are installed globally on your machine. To set up a virtual environment, run the following:
Version Managers: During this course you will work on various different assignments and labs. To organize your python versions and virtualenvs take a look at the following version and package managers for python:
Jupyter Notebooks: To use jupyter notebooks in the created virtual environment, follow these instructions