TEA is a webapp that is meant to help educate users on how AI/ML models are trained through an easy to understand and navigate web interface that allows the user to train their on model on a recidivism dataset. The user takes on the role of an ML developer that's creating a model for use in the United States Judicial System. Their model will be used in a real world, high impact situation, so hopefully by the end of the session they'll learn how to spot problematic feature choices and makes sure that their final model doesn't exhibit unfair biases on the character's created to test it.
Have fun and get educated on what goes into building a Machine Learning model with TEA!
- Clone the repository
- Make sure you have Python 3.9 installed and you're running all commands from now on with version 3.9
- In the root directory of the cloned repo, run the following commands
- Remove any existing virtual environments:
$ rm -rf env
- Create a virtual environment:
$ python -m venv env
- Activate the virtual env and set correct Flask variables:
- (Linux/Mac):
$ source env/bin/activate && export FLASK_APP=run.py && export FLASK_ENV=development && flask run
- (Windows)
$ source env/Scripts/activate && export FLASK_APP=run.py && export FLASK_ENV=development
- (Linux/Mac):
- Upgrade pip:
$ pip install --upgrade pip
- Install all required python packages:
$ pip install -r requirements.txt
- Remove any existing virtual environments:
- Start up Python virtual environment:
- (Linux/Mac):
$ source env/bin/activate
- (Windows)
$ source env/Scripts/activate
- (Linux/Mac):
- Run the application:
$ flask run
- Open browser and navigate to localhost:5000