numpy==2.2.6
pandas==2.3.3
scipy==1.15.3
scikit-learn==1.7.2
PyYAML==6.0.3
# Everything below is optional and deliberately not installed. The default run
# finishes in a couple of seconds on five pinned packages and no GPU, which is
# the only way a reader actually runs it.
#
# The real implicit-feedback ALS. models/collaborative.py implements the
# Hu-Koren-Volinsky objective in about forty lines of numpy and scipy instead.
# What you lose: conjugate-gradient solves and multithreading, so a real
# catalog of a few million items is hours rather than minutes. What you do NOT
# lose is anything about the blend, which is what this codebase is about, and
# the factor scales come out the same because they are set by reg, alpha and
# the factor count rather than by the solver.
# implicit==0.7.2
#
# A hybrid factorisation machine, which is the strongest single alternative in
# the post's comparison table and is a genuinely different answer rather than
# a faster one: it learns one embedding space over users, items AND content
# features, so there is no second score to put on a comparable scale. Install
# it if you want to check the claim that a jointly-trained model beats a
# blended one by learning the handoff instead of being told it. Note that it
# needs a C extension build.
# lightfm==1.17
#
# A sentence encoder for the content half. models/content.py uses TF-IDF plus
# truncated SVD, and the cost of that choice on a real catalog is roughly 0.03
# NDCG@10, concentrated on short item descriptions where a bag of words has
# almost no tokens to work with. On THIS generator it is worth nothing at all,
# because the documents are multinomial token draws with no word order for a
# transformer to read, so installing it here would buy a slower code path and
# an identical number. Any fallback is printed in a banner, never silent.
# sentence-transformers==5.1.2
#
# The real ANN index. Not used: this codebase scores the full candidate set
# exactly, because the measurement it needs is which of two score families
# wins a slot, and an approximate index adds a second source of missing items
# on top of the one being studied. The content-based post's codebase measures
# the recall-versus-latency curve properly.
# faiss-cpu==1.12.0
#
# Not used. Listed because the post's alternatives table compares against a
# two-tower retrieval model, which this codebase does not implement.
# torch==2.9.0
