lenskit.knn.association.AssociationConfig#

classlenskit.knn.association.AssociationConfig#

Bases: pydantic.BaseModel

Configuration options for AssociationScorer.

method:AssociationMethod ='probability'#

The formula to use for computing item association level.

damping:pydantic.NonNegativeFloat=0.0#

Damping factor (\(\kappa\)) for biased lift.

max_nbrs:pydantic.PositiveInt|None =None#

Maximum number of reference items used to score each target item. If None, items are scored by the mean of their score with respect to each reference item. If a positive integer \(n\), then only the \(n\) most-related reference items are used. \(n=1\) is equivalent to using only the maximum relatedness.