LeviWalsh / mlworkshop

resources for a machine learning workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ML Workshop

Resources for the MDB Machine Learning Workshop for April 6th 2019.

Before the workshop, complete setup and load datasets.

Setup

To start, clone this repository. We'll be working out of it for the workshop.

To follow good practice, we'll be working out of virtual environment for the following reasons:

  1. Leaving your global python installation the same
  2. Ensuring that we are all working with the same exact packages
  3. Prevent versioning conflicts. Specifically, we're using tensorflow 2.

Python Installation

  1. Make sure you have python 3.6 or python 3.7 on your computer.
  2. Make sure you have pip for python3 installed on your computer. As I have both python and python3 on my computer, for me this is pip3
  3. Then, install the virtualenv package with pip install virtualenv. Ideally, this is the only package you have on your system level python installation. You can figure out what pip packages you currently have installed by running pip freeze. Ideally, the output list should only contain virtualenv, though that's probably not the case.

Creating a Virtual Environment

  1. Create a virtual environment called venv in the github repository by running python3 -m virtualenv venv.
  2. Activate the virtual environment by running source venv/bin/activate. You can always deactivate the virtual environment with deactivate.
  3. Install all the packages for this workshop by running pip install -r requirements.txt. This will install all packages needed for the workshop!

Load Datasets

Finally, we're going to be using some datasets during the workshop and its best if you have them downloaded before hand.

To make sure the data sets are on your system, with your virtual environment active run python load_datasets.py.

You should see some datasets being downloaded through the Keras package. That's all you need to do!

Starting the Workshop

We will work out of jupyter notebooks. Run jupyter notebook in the virtual environment from the mlworkshop directory.

About

resources for a machine learning workshop


Languages

Language:Jupyter Notebook 99.5%Language:Python 0.5%