How do you remove bias from the machine learning models and ensure that the predictions are fair? What are the three stages in which the bias mitigation solution can be applied? This code pattern answers these questions to help you make informed decision by consuming the results of predictive models.
If you have questions about this code pattern, ask them or look for answers in the associated forum.
Fairness in data and machine learning algorithms is critical to building safe and responsible AI systems. While accuracy is one metric for evaluating the accuracy of a machine learning model, fairness gives you a way to understand the practical implications of deploying the model in a real-world situation.
In this code pattern, you use a diabetes data set to predict whether a person is prone to have diabetes. You’ll use IBM Watson® Studio, IBM Cloud Object Storage, and the AI Fairness 360 Toolkit to create the data, apply the bias mitigation algorithm, then analyze the results.
After completing this code pattern, you understand how to:
- Create a project using Watson Studio
- Use the AI Fairness 360 Toolkit
- Log in to IBM Watson Studio powered by Spark, initiate IBM Cloud Object Storage, and create a project.
- Upload the .csv data file to IBM Cloud Object Storage.
- Load the data file in the Watson Studio notebook.
- Install the AI Fairness 360 Toolkit in the Watson Studio notebook.
- Analyze the results after applying the bias mitigation algorithm during pre-processing, in-processing, and post-processing stages.
Find the detailed steps for this pattern in the readme file. The steps will show you how to:
- Create an account with IBM Cloud.
- Create a new Watson Studio project.
- Add data.
- Create the notebook.
- Insert the data as DataFrame.
- Run the notebook.
- Analyze the results.
This code pattern is part of the The AI 360 Toolkit: AI models explained use case series, which helps stakeholders and developers to understand the AI model lifecycle completely and to help them make informed decisions.