forked from online-ml/river
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* expose forecasting metrics * rename recommender to ranker * Update content-personalization.ipynb * activate ranker tests * Update label_combination_hoeffding_tree.py * Update label_combination_hoeffding_tree.py
- Loading branch information
1 parent
3732f70
commit d7800b8
Showing
15 changed files
with
293 additions
and
177 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,8 +1,24 @@ | ||
"""Recommender systems.""" | ||
from .base import Recommender | ||
"""Recommender systems module. | ||
Recommender systems (recsys for short) is a large topic. This module is far from comprehensive. It | ||
simply provides models which can contribute towards building a recommender system. | ||
A typical recommender system is made up of a retrieval phase, followed by a ranking phase. The | ||
output of the retrieval phase is a shortlist of the catalogue of items. The items in the shortlist | ||
are then usually ranked according to the expected preference the user will have for each item. This | ||
module focuses on the ranking phase. | ||
Models which inherit from the `Ranker` class have a `rank` method. This allows sorting a set of | ||
items for a given user. Each model also has a `learn_one(user, item, y, context)` which allows | ||
learning user preferences. The `y` parameter is a reward value, the nature of which depends is | ||
specific to each and every recommendation task. Typically the reward is a number or a boolean | ||
value. It is up to the user to determine how to translate a user session into training data. | ||
""" | ||
from .base import Ranker | ||
from .baseline import Baseline | ||
from .biased_mf import BiasedMF | ||
from .funk_mf import FunkMF | ||
from .normal import RandomNormal | ||
|
||
__all__ = ["Baseline", "BiasedMF", "FunkMF", "RandomNormal", "Recommender"] | ||
__all__ = ["Baseline", "BiasedMF", "FunkMF", "RandomNormal", "Ranker"] |
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
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
Oops, something went wrong.