Skip to content

Interactive Jupyter notebooks to support a 1 week curriculum about Fair ML targeting high-schoolers.

Notifications You must be signed in to change notification settings

vbursztyn/hcml-fairml-curriculum

Repository files navigation

HCML - Examining Fairness in ML Models: A Case Study

A high school civics curriculum created for Human-Centered Machine Learning (Fall 2020) with Dr. Stevie Chancellor at Northwestern University

by Ally Reith, Aristana Scourtas, Natalie Araujo Melo, Victor Bursztyn, Zane Denmon

Background

This one-week civics curriculum engages high school students in an exploration of machine learning applications through multiple points of entry: learners are guided through some of the histories, challenges, ethics, possibilities and consequences afforded by machine learning. Additionally, we situate the unit within a real-life example: the ProPublica investigation of recidivism prediction with the COMPAS software, alongside an interactive Jupyter notebook and exploratory model of our own.

In structuring our unit, we draw heavily on transformative justice as a guiding pedagogical framework. We’re inspired by the Reparations Won curriculum – developed in collaboration with Chicago Public Schools and the Chicago Torture Justice Memorial Center – which leverages restorative justice practices to guide learners through difficult material.

Curriculum materials

The curriculum is composed of two key components:

Additional reading

A detailed explanation of our theory, metholodology, and user study supporting this curriculum can be found in our Association for Computing Machinery (ACM) workshop pre-print:

Getting started

The Jupyter notebook for this curriculum was tested with Python 3.7 - 3.8 on MacOS. We recommend the instructor or teaching assistants walk through the installation steps with the students, or complete the installation ahead of classtime.

Setup steps on MacOS:

  1. Go to the Applications folder on your computer, and open Terminal to access the commandline
  2. Enter the command brew install graphviz to use Homebrew to install graphviz on Mac OS (see here if you don't have Homebrew installed)
  3. In the Terminal, navigate to the directory you want to install the workshop files to by running the command cd <directory_path>. For example, if I wanted to download everything to my Desktop, I'd run cd ~/Desktop
  4. Now you should be in the right directory! Run pwd to ensure you're in the directory you want to be in
  5. Great! Pull down the workshop files by running git clone https://github.com/vbursztyn/hcml-fairml-curriculum.git
  6. Run ls, this lists the files in the directory you're in. You should see the hcml-fairml-curriculum folder
  7. cd into the folder by running cd hcml-fairml-curriculum
  8. Now, run pip install -r requirements.txt to install Python dependencies to the environment of your choice. We'd recommend setting up a virtual environment
  9. Run jupyter nbextension enable --py widgetsnbextension to make sure interactive widgets are enabled
  10. Run jupyter notebook to run Jupyter from the main folder
  11. Execute notebook WOKE ML Lab.ipynb to run the lab and interact with the decision tree

References:

  1. https://towardsdatascience.com/interactive-visualization-of-decision-trees-with-jupyter-widgets-ca15dd312084

About

Interactive Jupyter notebooks to support a 1 week curriculum about Fair ML targeting high-schoolers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published