Machine learning with Python tutorial at MSU Data Science 2018

rasbt rasbt Last update: Apr 18, 2024

Machine Learning with Python @ MSU Data Science 2018

This tutorial will teach you the basics of scikit-learn. I will give you a brief overview of the basic concepts of classification and regression analysis, and how to build powerful predictive models from labeled data. Although it's not a requirement for attending this tutorial, I highly recommend you to check out the accompanying GitHub repository at 1-2 days before the tutorial. During the session, we will not only talk about scikit-learn, but we will also go over some live code examples to get the knack of scikit-learn's API.

If you have any questions about the tutorial, please don't hesitate to contact me. You can either open an "issue" on GitHub or reach me via email at I am looking forward to meeting you soon!


This repository will contain the teaching material and other info for the Learning scikit-learn tutorial at the MSU Data Science held on February 21st 6:15-7:30 pm at Wells Hall (WH) B102.

  • When? Wed Feb 21, 2018 at 6:15 - 7:30 pm
  • Where? Michigan State University Wells Hall (WH) B102

I recommend watching the MSU Data Science website and Facebook group for (last minute) updates

Obtaining the Tutorial Material

If you already have a GitHub account, the probably most convenient way to obtain the tutorial material is to clone this GitHub repository via git clone and fetch updates via pull origin master

If you don’t have an GitHub account, you can download the repository as a .zip file by heading over to the GitHub repository ( in your browser and click the green “Download” button in the upper right.

Installation Notes and Requirements

Please note that installing the following libraries and running code alongside is not a hard requirement for attending the tutorial session, you will be able to follow along just fine (and probably be less distracted :)). Now, the tutorial code should be compatible to both Python 2.7 and Python 3.x. but will require recent installations of

To install these libraries it's most convenient to either use conda or pip, e.g.,

conda install numpy


pip install numpy


Please make sure that you have these libraries installed in your current Python environment prior to attending the tutorial if you want to execute the code examples that are executed during the talk. Please also note that executing these examples during/after the talk is merely a suggestion, not a requirement. I highly recommend you to open the code/check_environment.ipynb](code/check_environment.ipynb) notebook as a Jupyter notebook, for instance by the notebook via

jupyter notebook <path-to>/msu-datascience-ml-tutorial-2018/code/check_environment.ipynb

and executing the code cells:


Subscribe to our newsletter