lenskit.basic.topn.TopNConfig#

class lenskit.basic.topn.TopNConfig#

Bases: pydantic.BaseModel

Configuration for top-N ranking.

n: int | None = None#

The number of items to return. -1 or None to return all scored items.