lenskit.stochastic.StochasticTopNConfig#
- classlenskit.stochastic.StochasticTopNConfig#
Configuration for
StochasticTopNRanker.- rng:lenskit.random.DerivableSeed =None#
Random number generator configuration.
- transform:Literal['softmax','linear']|None ='softmax'#
Transformation to convert scores into ranking probabilities.
- softmax
Use the softmax of the item scores as the selection probabilities.
- linear
Linearly re-scale item scores to be selection probabilities. This equivalent to min-max scaling the scores, then re-scaling to sum to 1.
NoneNo transformation, except negative scores are clamped to (almost) zero. Not recommended unless your item scorer emits multinomial probabilities.