{{ data.metrics.fairness_score | format_number(3) }}
{{ data.metrics.worst_group }}
{{ data.metrics.best_group }}
{{ data.group_results | length if data.group_results else 'N/A' }}
Interpretation: {% if data.metrics.fairness_score >= 0.8 %} Excellent fairness! The model provides equitable performance across demographic groups. {% elif data.metrics.fairness_score >= 0.6 %} Good fairness. The model shows reasonable fairness across groups with some disparities. {% else %} Low fairness. The model exhibits significant disparities across demographic groups and requires improvement. {% endif %}
| Group | Size | Accuracy | Precision | Recall | F1 Score | {% if data.group_results[0].get('demographic_parity') %}Demographic Parity | {% endif %} {% if data.group_results[0].get('equalized_odds') %}Equalized Odds | {% endif %}
|---|---|---|---|---|---|---|---|
| {{ group.group_name }} | {{ group.size if group.get('size') else 'N/A' }} | {{ 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' }} | {% if data.group_results[0].get('demographic_parity') %}{{ group.demographic_parity | format_number(3) if group.get('demographic_parity') is not none else 'N/A' }} | {% endif %} {% if data.group_results[0].get('equalized_odds') %}{{ group.equalized_odds | format_number(3) if group.get('equalized_odds') is not none else 'N/A' }} | {% endif %}
No group results available.
{% endif %}| Metric Name | Value | Status | Description |
|---|---|---|---|
| {{ metric.name | replace('_', ' ') | title }} | {{ metric.value | format_number(4) if metric.value is number else metric.value }} | {% if metric.get('status') %} {{ metric.status }} {% elif metric.value is number %} {{ 'Pass' if metric.value | abs <= 0.1 else 'Fail' }} {% else %} N/A {% endif %} | {{ metric.description if metric.get('description') else 'N/A' }} |
| {{ key | replace('_', ' ') | title }} | {{ value }} |
|---|