lenskit.knn.user.UserKNNConfig#
- class lenskit.knn.user.UserKNNConfig#
Bases:
pydantic.BaseModelConfiguration for
ItemKNNScorer.- max_nbrs: pydantic.PositiveInt#
The maximum number of neighbors for scoring each item.
- min_nbrs: pydantic.PositiveInt = 1#
The minimum number of neighbors for scoring each item.
- min_sim: pydantic.PositiveFloat = 1e-06#
Minimum similarity threshold for considering a neighbor. Must be positive; if less than the smallest 32-bit normal (\(1.175 \times 10^{-38}\)), is clamped to that value.
- feedback: lenskit.data.FeedbackType = 'explicit'#
The type of input data to use (explicit or implicit). This affects data pre-processing and aggregation.