{% extends "base.html" %} {% block title %}Fairness Report (Simple) - {{ data.model_name }}{% endblock %} {% block content %}

Fairness Summary

Fairness Score

{{ data.metrics.fairness_score | format_number(3) }}

Groups Evaluated

{{ data.group_results | length if data.group_results else 'N/A' }}

Status & Interpretation

{% if data.metrics.fairness_score >= 0.8 %}

✓ EXCELLENT

The model provides equitable performance across demographic groups with minimal disparities.

{% elif data.metrics.fairness_score >= 0.6 %}

⚠ ACCEPTABLE

The model shows reasonable fairness across groups with some notable disparities that warrant attention.

{% else %}

✗ POOR

The model exhibits significant fairness disparities across groups and requires improvement.

{% endif %}
{% if data.protected_attributes and data.protected_attributes | length > 0 %}

Protected Attributes

{% endif %}

Key Findings

{% if data.group_results and data.group_results | length > 0 %}

Group Performance Summary (Top Groups)

{% set max_rows = [5, data.group_results | length] | min %} {% for group in data.group_results[:max_rows] %} {% endfor %}
Group Accuracy Precision Recall F1 Score Sample Size
{{ group.group_name }} {{ group.accuracy | format_percentage(2) if group.get('accuracy') else 'N/A' }} {{ group.precision | format_percentage(2) if group.get('precision') else 'N/A' }} {{ group.recall | format_percentage(2) if group.get('recall') else 'N/A' }} {{ group.f1_score | format_percentage(2) if group.get('f1_score') else 'N/A' }} {{ group.size if group.get('size') else 'N/A' }}
{% if data.group_results | length > 5 %}

Showing 5 of {{ data.group_results | length }} groups. View full report for complete details.

{% endif %}
{% endif %}

Recommendations

{% if data.metrics.fairness_score >= 0.8 %}

✓ Model Fairness is Excellent

Your model demonstrates strong fairness across demographic groups. Recommendations:

{% elif data.metrics.fairness_score >= 0.6 %}

⚠ Model Fairness Requires Attention

Your model shows acceptable fairness but with room for improvement. Recommendations:

{% else %}

✗ Model Fairness Needs Improvement

Your model exhibits significant fairness disparities. Immediate actions recommended:

{% endif %}
{% if data.test_config %}

Test Details

{% for key, value in data.test_config.items() %} {% endfor %}
{{ key | replace('_', ' ') | title }} {{ value }}
{% endif %} {% endblock %}