-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
873b074
commit 768e620
Showing
4 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Other Components | ||
================ | ||
|
||
LensKit provides a number of other components; they are detailed in the API reference, | ||
but a few that are useful in assembling useful pipelines include: | ||
|
||
Candidate Selectors | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
|
||
lenskit.basic.UnratedTrainingItemsCandidateSelector | ||
lenskit.basic.AllTrainingItemsCandidateSelector | ||
|
||
History Lookup | ||
~~~~~~~~~~~~~~ | ||
|
||
LensKit pipelines use a history lookup component to obtain user profile data | ||
when the recommender is called with only a user ID, so they do not need to | ||
repeat that logic in each component. | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
|
||
lenskit.basic.UserTrainingHistoryLookup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.. _rankers: | ||
|
||
Ranking Algorithms | ||
================== | ||
|
||
LensKit provides several ranking components that rank items. | ||
|
||
The usual design for a ranker is to take as input a list of items named `items`, | ||
usually with scores (typically the output of a :ref:`scoring model <scorers>`), | ||
and possibly the query, and return an ordered item list. Rankers can also take | ||
ranked inputs for re-ranking. By convention, they are named ``XYZRanker``. | ||
|
||
Top-N Ranking | ||
~~~~~~~~~~~~~ | ||
|
||
Classic top-*N* ranking is provided by :class:`lenskit.basic.TopNRanker`. The | ||
standard pipelines configured by :class:`~lenskit.pipeline.RecPipelineBuilder` | ||
use this ranker by default. | ||
|
||
Stochastic Ranking | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
- :class:`lenskit.basic.SoftmaxRanker` computes a randomized Plackett-Luce | ||
ranking, where each item is selected with probability proportional to its | ||
score. | ||
- :class:`lenskit.basic.RandomSelector` selects items uniformly at random. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters