{% extends "base.html" %} {% block title %}Admin Panel - Fraud Detection System{% endblock %} {% block content %}
System management and configuration
Total Users
Total Transactions
Fraud Cases
Fraud Rate
{{ system_stats.active_model.model_version }}
{{ system_stats.active_model.training_date.strftime('%Y-%m-%d %H:%M:%S') }}
No active model found
| Username | Role | Created | Status | Actions | |
|---|---|---|---|---|---|
|
|
{{ user.email }} | {{ user.role.title() }} | {{ user.created_at.strftime('%Y-%m-%d') }} | {{ 'Active' if user.is_active else 'Inactive' }} |
|
| Version | Training Date | Accuracy | Precision | Recall | F1-Score | AUC | Status |
|---|---|---|---|---|---|---|---|
{{ metric.model_version }}
{% if metric.is_active %}
Active
{% endif %}
|
{{ metric.training_date.strftime('%Y-%m-%d %H:%M') }} | {{ "%.3f"|format(metric.accuracy or 0) }} | {{ "%.3f"|format(metric.precision or 0) }} | {{ "%.3f"|format(metric.recall or 0) }} | {{ "%.3f"|format(metric.f1_score or 0) }} | {{ "%.3f"|format(metric.auc_score or 0) }} | {% if not metric.is_active %} {% endif %} |
No model training history available