TrellixVulnTeam / COMPAS-racial-bias_71TO

Microsoft Azure Hackathon: COMPAS Racial Bias and Score Prediction (4th place; Honorable Mentions on Microsoft Blog)

Home Page:https://share.streamlit.io/aoyingxue/compas-racial-bias/main/app.py

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About COMPAS Racial Bias

Azure Hackathon: COMPAS Racial Bias and Predict Scores

Packages and Platforms

  1. Python 3.5
  2. Streamlit for providing the interactive web app template.
  3. Google Colab Notebooks for building the models and predicting the scores.
  4. Flask and Microsoft Azure to deploy the model and website.

Installation

Create virtual environment

If running on Python 3, the venv is built-in: python3 -m venv env and then activate the environment: source env/bin/activate Install dependencies (details shown below). pip3 install -r requirements.txt

Run streamlit app

streamlit run app.py

Dependencies

Add or remove dependencies

We use "pipreqs" to generate requirements.txt which contains the required requirements for the deployment.

Add/remove dependencies at any point by updating requirements.txt (Python deps) or packages.txt (Debian deps) and doing a git push to your remote repo. This will cause Streamlit to detect there was a change in its dependencies, which will automatically trigger its installation.

It is best practice to pin Streamlit version in requirements.txt. Otherwise, the version may be auto-upgraded at any point without your knowledge, which could lead to undesired results (e.g. when we deprecate a feature in Streamlit).

About

Microsoft Azure Hackathon: COMPAS Racial Bias and Score Prediction (4th place; Honorable Mentions on Microsoft Blog)

https://share.streamlit.io/aoyingxue/compas-racial-bias/main/app.py

License:MIT License


Languages

Language:Python 86.1%Language:C++ 4.4%Language:JavaScript 4.3%Language:Cython 1.7%Language:CSS 1.3%Language:Jupyter Notebook 0.8%Language:C 0.7%Language:HTML 0.5%Language:Jinja 0.1%Language:Shell 0.0%Language:Fortran 0.0%Language:Less 0.0%Language:Smarty 0.0%Language:Dockerfile 0.0%Language:Batchfile 0.0%