{% if not queried %}
Enter a user id to inspect their recent events and current top-K.
{% else %}Recommendations for {{ user_id }}
These are popular-item stand-ins, not this user's personalized ranking.
{% endif %} {% if user_attrs %}No events for {{ user_id }}.
{% else %}| When | Item | Type | {% if show_quantity %}Qty | {% endif %}
|---|---|---|---|
| {% if event.occurred_at != "—" %} {% else %} {{ event.occurred_at }} {% endif %} | {{ event.item_id }}{% if event.item_id in overlap_item_ids %} Also in recommendations{% endif %} | {{ event.event_type }} | {% if show_quantity %}{{ event.quantity }} | {% endif %}
No recommendations for {{ user_id }}.
{% else %}| Rank | Item | {% if show_category %}Category | {% endif %}Score | Source | {% if show_reasons %}Why | {% endif %}
|---|---|---|---|---|---|
| {{ item.rank }} | {{ item.item_id }}{% if item.item_id in overlap_item_ids %} Also in recent events{% endif %} | {% if show_category %}{{ item.category }} | {% endif %}{{ item.score }} | {{ item.source }} | {% if show_reasons %}{{ item.reasons }} | {% endif %}
Highlighted rows appear in both events and recommendations.
{% endif %} {% endif %}