graduate_code/starters/ethics.py
# Exercise scaffold. Reference implementation is in a separate directory.
"""G11: descriptive group error audit. No automatic fairness or deployment verdict."""
import math
def binary_report(y, probabilities, threshold=0.5):
raise NotImplementedError('Implement this contract from the book.')
def audit(y, probabilities, groups, threshold=0.5):
raise NotImplementedError('Implement this contract from the book.')