Question: I want a python code: miniproject 3 : The objective of this miniproject is to study bias detection and mitigation. Please use your favorite dataset
I want a python code: miniproject
: The objective of this miniproject is to study bias detection and mitigation. Please use your
favorite dataset from the UCI Machine Learning Datasets or Kaggle Datasets
links given in
previous miniproject descriptions or can be easily found by Googling
You need to build two
machine learning models
using decision forests and neural networks respectively
based on this
dataset to predict the appropriate output variable.
You need to choose a suitable protected variable
such as race, gender, etc
Any appropriate
feature may be used as a protected variable. The test set needs to be split into different subsets by
the values of the protected feature, and the classification prediction accuracies on these subsets need
to be calculated.
Generate bar figures that show the accuracies of the models on these groups with different values
of the protected variable with each of the two ML methods. If there is clear difference in prediction
accuracy for these groups, we perceive that a bias exists in this ML classification model in terms of
prediction accuracy or effectiveness. This may be used as a bias measurement criterion. Then try to
mitigate this potential bias by sampling differentially from the training sets according to the values
of the protected variable. For example, if a particular protected group shows lower accuracy, you
may sample this protected group more
at the expense of other protected groups
in the training set
to try to improve the accuracy over this protected group.
Please submit a
or
page report with the following components:
i
Problem Statement and description
ii
Brief descriptions of the methods used
iii
The results on the entire test set with each of the two ML methods
iv
The results on the test set partitioned by the protected variable as described above with each
of the two ML methods
v
Results on the test set with your proposed bias mitigation strategy to show if it reduces the
bias as measured by your chosen criteri
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
