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 41 seconds on five pinned packages and no GPU.
#
# The production answer for LambdaMART. `objective="lambdarank"` in LightGBM is
# the same algorithm as models/lambdamart.py with three differences that all
# matter at scale and none of which change what the gradient is: histogram
# binning of the features, leaf-wise growth with a leaf budget instead of
# depth-wise, and a C++ implementation of the pair loop that is roughly 200x
# faster than the numpy one here. Use it for anything real; the version in this
# repository exists so that the lambda computation is readable, because
# `objective="lambdarank"` is where the idea goes to hide.
#
# Two things to know when you switch. LightGBM needs the group sizes as a
# `group` array in query order, and it does NOT check that your rows are
# sorted by query, so a shuffled frame produces silently wrong groups and a
# plausible-looking metric. And `lambdarank_truncation_level` is the same
# parameter as `ndcg_truncation` here, defaulting to 30, which the sweep in
# run_pipeline.py suggests is a reasonable default and not one to tune down
# towards your reporting k.
# lightgbm==4.6.0
#
# The same algorithm again as `rank:ndcg`, plus `rank:pairwise` which is the
# no-delta variant this codebase implements with ndcg_delta=False. Worth
# installing if you want to check the --delta result against a second
# implementation.
# xgboost==3.0.2
#
# Unbiased learning-to-rank tooling: propensity estimation from interventional
# swaps or an EM fit, rather than the known examination model this generator
# hands you for free. That gap is the single biggest difference between the
# --labels flag here and the real version of that work, because in production
# nobody knows the propensity and estimating it is most of the job.
# allrank==1.4.3
#
# Not used. Listed because the post's alternatives table compares against a
# neural listwise ranker (ListNet, ApproxNDCG) and a cross-encoder reranker,
# neither of which this codebase implements.
# torch==2.9.0
