Skip to content

humancompatible/autochoice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

humancompatible.autochoice

Auto-ML tuning for fairness toolkits

This toolkit provides an automated framework for testing, evaluating and exploring fairness in machine learning algorithms using different fairness metrics and algorithms. It serves as an automated solution that integrates a seamless benchmarking for evaluating the performance of fairness for various models under diverse fairness constraints.

Features:

  • Automated tracking of model parameters, without requiring a by-hand definition
  • Identification of best model parameters to achieve fairness
  • Integrates conformal prediction ranges (to identify the statistical significance of the fairness output)
  • Support multiple fairness constraints and algorithms from AIF360 and AIX360

Requirements:

The toolkit provides a Dockerfile that builds the image containing the necessary execution environment for the evaluation process as well as exposes a Web-UI to simplify the execution of a machine learning pipeline.

Setting up MLFlow Tracking Server

Under the folder:

autochoice/autochoicebackend

edit the files:

  • run_mlflow.py: Setup the IP and PORT variables regarding the MLFlow tracking server in lines 28 & 29
  • run_experiments_parallel.py: Setup the IP and PORT variables regarding the MLFlow tracking server in lines 12 & 13

Building the docker image:

docker build -t mlflow-automl-experiment .

This command will build the execution environment of the ML pipeline and will automate the tracking process.

Building the web-UI

This step requires the installation of the following packages using the pip tool:

pip3 install ipywidgets pandas matplotlib seaborn scikit-learn aif360[all]

If the installation of "aif360[all]" fails due to setuptools, follow the next steps:

pip3 install --upgrade pip setuptools wheel
sudo apt install r-base
pip3 install rpy2
pip3 install aif360[all]

Running the web-UI

Under the folder:

autochoice/autochoiceui

run the following command:

voila autofairui.ipynb --no-browser --port=8888 --Voila.ip=0.0.0.0

About

Auto-ML tuning for fairness toolkits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •