{% extends "base.html" %} {% block title %}Métriques Validation DIM{% endblock %} {% block sidebar %} {% for group_name, items in groups.items() %}
{{ group_name | format_dossier_name }}
{% for item in items %} {% if 'fusionne' in item.name %} ★ Fusionné {% else %} {{ item.name | format_doc_name }} {% endif %} {% endfor %} {% endfor %} {% endblock %} {% block content %}
Retour à la liste

Métriques de qualité

{% if metrics.total_valides == 0 %}

Aucun dossier validé pour le moment.

Validez des dossiers depuis la liste de validation pour voir les métriques.

{% else %}
Progression {{ metrics.total_valides }} / {{ total_selection }} dossiers validés
{% set pct = (metrics.total_valides / total_selection * 100) if total_selection > 0 else 0 %}

Diagnostic Principal

{{ "%.1f" | format(metrics.dp.accuracy * 100) }}%
{{ metrics.dp.correct }} / {{ metrics.dp.total }}
{{ metrics.dp.modifie }}
{{ metrics.dp.supprime }}
{% set dp_t = metrics.dp.total or 1 %}
Correct Modifié Supprimé

Diagnostics Associés

{{ "%.1f" | format(metrics.das.precision * 100) }}%
{{ "%.1f" | format(metrics.das.recall * 100) }}%
{{ "%.1f" | format(metrics.das.f1 * 100) }}%
{{ "%.1f" | format(metrics.das.hallucination_rate * 100) }}%
Pipeline : {{ metrics.das.total_pipeline }} DAS Référence DIM : {{ metrics.das.reference }} Correct : {{ metrics.das.correct }} Modifié : {{ metrics.das.modifie }} Supprimé : {{ metrics.das.supprime }} Ajouté : {{ metrics.das.ajoutes }}
Taux DAS manqués : {{ "%.1f" | format(metrics.das.miss_rate * 100) }}% ({{ metrics.das.ajoutes }} ajoutés / {{ metrics.das.reference }} référence)
{% if metrics.by_confidence %}

Par niveau de confiance

{% for conf, bucket in metrics.by_confidence.items() %} {% endfor %}
Confiance Total DAS Correct Modifié Supprimé Precision Hallucination
{{ conf | confidence_badge }} {{ bucket.total }} {{ bucket.correct }} {{ bucket.modifie }} {{ bucket.supprime }} {{ "%.1f" | format(bucket.precision * 100) }}% {{ "%.1f" | format(bucket.hallucination * 100) }}%
{% endif %} {% if metrics.by_source %}

Par source d'extraction

{% for source, bucket in metrics.by_source.items() %} {% endfor %}
Source Total DAS Correct Modifié Supprimé Precision Hallucination
{{ source }} {{ bucket.total }} {{ bucket.correct }} {{ bucket.modifie }} {{ bucket.supprime }} {{ "%.1f" | format(bucket.precision * 100) }}% {{ "%.1f" | format(bucket.hallucination * 100) }}%
{% endif %} {% if metrics.top_corrections %}

Top corrections DAS (code pipeline → code DIM)

{% for (code_from, code_to), count in metrics.top_corrections %} {% endfor %}
Code pipeline Code corrigé Occurrences
{{ code_from }} {{ code_to }} {{ count }}
{% endif %} {% if metrics.dp_corrections %}

Top corrections DP (code pipeline → code DIM)

{% for (code_from, code_to), count in metrics.dp_corrections %} {% endfor %}
Code pipeline Code corrigé Occurrences
{{ code_from }} {{ code_to }} {{ count }}
{% endif %} {% endif %} {% endblock %}