streamlit-recommenders¶
Turn a recommender into an interactive web demo that others can inspect: pick a user, see their history and the model's recommendations, give feedback, compare models side by side.
You supply pandas tables and a function (or object) that returns ranked item ids. The library provides the Streamlit app around it: session profile, caching, layouts, model comparison, and helpers for metrics and plots. It contains no models of its own.
Offline metrics say how a model scores on average; they do not show what it recommends to a given user or how it reacts to new feedback. A demo shows that, but building one is frontend work. This library makes it a few lines of Python, so a demo can be published with a paper.
Contents¶
| Page | Read it when |
|---|---|
| Getting started | you want a running demo |
| Recommender contract | you connect your own model |
| Data contract | you prepare your own tables |
| Feedback & session | you need to know what Like, Dislike, Skip and seen-filtering do |
| Inspection views | you add metrics or plots below the demo |
| Architecture | you want the internals |
| Examples | you want runnable code for each plug-in form |
| Datasets | you need MovieLens, goodbooks or TMDB posters |
| Training & artifacts | you train elsewhere and load weights |
| API reference | you look up a function |