{% extends "base.html" %} {% block title %}Predicciones{% endblock %} {% block topbar_title %}Predicciones ML / NLP{% endblock %} {% block topbar_extra %} {{ current_name }} — {{ total }} registros {% endblock %} {% block head %} {% if ml_dashboard_json %} {% endif %} {% endblock %} {% block content %}
{% for key, name in all_datasets.items() %} {{ name }} {% endfor %}
{% if ml_dashboard_json %}
Dashboard del modelo — {{ current_name }}
↺ Recargar
{% endif %}
Tabla de predicciones
{{ current_name }} · mostrando {{ rows|length }} de {{ total }}
{% for key, name in ml_dashboards.items() %} {% if loop.first %} 📊 Ver dashboards ML {% endif %} {% endfor %}
{% if rows %}
{% for col in columns %} {% endfor %} {% for row in rows %} {% for col in columns %} {% endfor %} {% endfor %}
{{ col }}
{% set val = row[col] %} {% if col == 'risk_level' or col == 'risk_level' %} {% if val == 'High' %} {{ val }} {% elif val == 'Medium' %} {{ val }} {% elif val == 'Low' %} {{ val }} {% else %} {{ val }} {% endif %} {% elif col == 'real_status' or col == 'real_support' or col == 'predicted' %} {% if val in ['Pass', 'Low'] %} {{ val }} {% elif val in ['Fail', 'High'] %} {{ val }} {% elif val == 'Medium' %} {{ val }} {% else %} {{ val }} {% endif %} {% elif col == 'student_id' %} {{ val }} {% else %} {{ val }} {% endif %}
{% else %}
No hay datos disponibles para este dataset.
{% endif %}
{% endblock %} {% block scripts %} {% if ml_dashboard_json %} {% endif %} {% endblock %}