ML7: Responsible AI: fairness, explanations, privacy and security

Lesson 5 of 5 · reading 15–25 minutes; practice and project time is on the module page

Oversight, documentation and accountability

🎯You'll be able to

Write a model card, decide where people must stay in the loop, and set up a way for affected people to question a decision.

🏠The everyday picture

A new medicine comes with a leaflet: what it's for, who shouldn't take it, side effects, and what to do if something goes wrong. A model needs the same leaflet, and someone responsible for it.

📘What it really is

📝A worked example

Input: the reference solution's models/model_card.md, written by python -m dakdost.train (2 November 2026).

Expected output: sections for intended use ("a prompt for a person, not an automatic decision: no parcel is refused, charged more or delayed because of this score"), uses it's not for (pricing, refusing service, judging couriers), the data and split dates, a table of June measures (baseline 0.0968 PR-AUC; logistic regression 0.5818; this model 0.6235, precision 0.6647, recall 0.5349 at threshold 0.3), results by zone, limitations (synthetic data; recall differs by zone; weather not in the data) and ethical considerations. Project 1's test 10 checks that the card quotes the same PR-AUC and threshold as metrics.json.

🌍Where it's used

📝Case scenario

A city used an algorithm to help decide which families got extra visits from social workers. Families couldn't find out why they had been chosen, and errors went unnoticed. After complaints, the city published what the tool used, added a review by a senior worker for each case, and gave families a way to ask for an explanation and a correction.

🖱️Try it

Open models/model_card.md after Project 1 works, and add a "Who to contact" line and a "Review date" line. Success: someone outside the team could tell what the model is for, who owns it and when it will next be checked.

⚠️Common mistakes

🛠️For your project

Project 1's test 10 checks the model card's sections and figures; the capstone self-check asks who owns the model.

✅Quick check

What does a model card's "Not intended for" section do?

Show the answer

It warns against uses the model wasn't built or tested for.

Why generate the model card from the metrics file?

Show the answer

So its figures always match the real model's.

← PreviousSecurity for AI systems
ProLearners Assist