mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Recommendations came straight from IGDB's `similar_games`, which mostly names titles the server does not hold and is absent entirely for anything IGDB never matched. `rom_similarity` holds a precomputed item-item graph blending four signals: IDF-weighted metadata overlap, the IGDB prior resolved against the library, collection co-membership and co-play. Scores are library-relative, so a shelf full of arcade games learns on its own that "Action" says nothing while "Metroidvania" says a great deal, with no tuning. Each edge stores the facets that produced it, so the UI can explain a recommendation rather than showing an unattributed row of covers. Candidate generation runs off an inverted index with a document-frequency cap, avoiding the all-pairs comparison. The graph is rebuilt wholesale by a scheduled task because the IDF weighting shifts as the library grows, and writes commit in batches so a task that dies leaves stale edges rather than an empty table. The personalised feed is ranked on demand from those edges plus live play history, since a nightly feed would ignore the game played an hour ago. Ratings below the scale midpoint act as negative seeds, results are diversified per franchise and platform, and owned-but-unplayed games are boosted. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 lines
0 B
Python
0 lines
0 B
Python
The file is empty.