fairmodels
fairmodels copied to clipboard
using fairness_check_regression() with an equation instead of model object
fairness_check_regression()
requires a DALEX
explainer as input. To create a DALEX
explainer, one needs a model object. Imagine, I am getting a regression equation from a paper and I want to look into fairness of it with a dataset. I did not fit the regression myself, and thus don't have a model object. How can I create an explainer from an arbitrary R function that uses a formula (or whatever) to produce the predictions of the regression model?
Thanks