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