lenskit.reranking.fair.FAIRRerankerConfig ========================================= .. py:class:: lenskit.reranking.fair.FAIRRerankerConfig Bases: :py:obj:`pydantic.BaseModel` Configuration for :class:`FAIRReranker`. .. py:attribute:: n :type: pydantic.PositiveInt Size of the top-N subset to rerank. If ``None``, the entire candidate list is reranked. .. py:attribute:: p :type: pydantic.PositiveFloat The target proportion of protected items in the list (0.0 ≤ p ≤ 1.0). The default value is 0.5. .. py:attribute:: alpha :type: pydantic.PositiveFloat The probability threshold for Type I error across prefixes. The default value is 0.1. .. py:attribute:: protected_attribute :type: str The item attribute name that marks whether an item is protected. The default name is 'protected'.