Spaces:
Runtime error
Runtime error
File size: 766 Bytes
d2a8669 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inprocessing_prejudice_remover.R
\name{prejudice_remover}
\alias{prejudice_remover}
\title{Prejudice Remover}
\usage{
prejudice_remover(eta=1.0, sensitive_attr='',class_attr='')
}
\arguments{
\item{eta}{fairness penalty parameter}
\item{sensitive_attr}{name of protected attribute}
\item{class_attr}{label name}
}
\description{
Prejudice remover is an in-processing technique that adds a discrimination-aware regularization term to the learning objective
}
\examples{
\dontrun{
# An example using the Adult Dataset
load_aif360_lib()
ad <- adult_dataset()
model <- prejudice_remover(class_attr = "income-per-year", sensitive_attr = "race")
model$fit(ad)
ad_pred <- model$predict(ad)
}
}
|