mlconfound
Tools for analyzing and quantifying effects of counfounder variables on machine learning model predictions.
Install
pip install mlconfound
Usage
# y : prediction target
# yhat: prediction
# c : confounder
from mlconfound.stats import partial_confound_test
partial_confound_test(y, yhat, c)
Run the quickstart notebook in Binder:
Read the docs for more details.
Documentation
https://mlconfound.readthedocs.io
Citation
T. Spisak, Statistical quantification of confounding bias in predictive modelling, preprint on arXiv:2111.00814, 2021.