Skip to content

hrailabs/toolkit

Repository files navigation

Thumbnail

https://hrailabs.com

Welcome to the Employee Equity Toolkit!

Here we've provided open and transparent code that can be used for disparate impacting testing.

Try out our deployed app: https://app.hrailabs.com

Check out our Medium article to learn more about the theory and application.

Like to contribute? Reach out to jfeld@hrailabs.com.

Instructions

Deployed app: https://app.hrailabs.com
See directory for sample input file sample_input.csv

Installation:
- Set up a virtual environment: equity_toolkit
- conda env create -f env.yaml
- conda activate equity_tookit

File Prep:
- Place input csv file in inputs folder.
- Update config file with parameters.

Run App: python app.py
- Navigate to local browser: http://127.0.0.1:8050/

Run Model:

import model

with open('config.yaml') as f:
    config = yaml.safe_load(f)
    
model = model.Model(config)

df_prep, tbl = model.prep()

df_result = model.analysis(df_prep.copy(), tbl)