{% extends "base.html" %} {% load static %} {% block title %}任务详情 - 联邦学习{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
← 返回任务列表

📋 任务详情

{{ task.name }}
{{ task.get_status_display }}
{% if task.description %}

{{ task.description }}

{% endif %}
创建者
{{ task.created_by.username }}
创建时间
{{ task.created_at|date:"Y-m-d H:i" }}
聚合方法
{% if task.aggregation_method == 'fedprox' %} FedProx {% elif task.aggregation_method == 'fedavg' %} 平均联邦 {% elif task.aggregation_method == 'fedweight' %} 权重联邦 {% else %} FedProx {% endif %}
{% if task.aggregation_method == 'fedprox' %}
μ参数
{{ task.mu }}
{% endif %}
聚合轮数
{{ task.current_round }} / {{ task.num_rounds }}
{% if task.status == 'failed' and task.error_message %}
错误信息: {{ task.error_message }}
{% endif %}
📦 参与模型 ({{ task.uploaded_models.count }})
{% for model in task.uploaded_models.all %}
{{ model.name }}
{{ model.model_type }} · {{ model.file_size }}MB
{{ model.upload_time|date:"Y-m-d" }}
{% endfor %}
{% if task.status == 'completed' and task.aggregated_model %}
✅ 聚合结果
{{ task.aggregated_model.model_size }}
模型大小(MB)
{{ task.aggregated_model.download_count }}
下载次数
{{ task.aggregated_model.created_at|date:"m-d H:i" }}
创建时间
{% if task.aggregated_model.metrics.round_history %}
🔁 轮次记录
{% for record in task.aggregated_model.metrics.round_history %}
第 {{ record.round }} 轮
客户端 {{ record.client_count }} 个
{% endfor %}
{% endif %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}