Skip to content

Commit

Permalink
Cit update
Browse files Browse the repository at this point in the history
  • Loading branch information
benedekrozemberczki committed Dec 6, 2021
1 parent 332e6ea commit 6d166ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions rexmex/metrics/ranking.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def average_precision_at_k(relevant_items: np.array, recommendation: np.array, k
Returns:
AP@K (float): The average precision @ k of a predicted list.
`Original: <https://github.com/benhamner/Metrics/blob/master/Python/ml_metrics/average_precision.py>`_
`Original <https://github.com/benhamner/Metrics/blob/master/Python/ml_metrics/average_precision.py>`_
"""

if len(recommendation) > k:
Expand Down Expand Up @@ -228,7 +228,7 @@ def intra_list_similarity(recommendations: List[list], items_feature_matrix: np.
Returns:
(float): Average intra list similarity across predicted
`Original: <https://github.com/statisticianinstilettos/recmetrics/blob/master/recmetrics/metrics.py#L232>`_
`Original <https://github.com/statisticianinstilettos/recmetrics/blob/master/recmetrics/metrics.py#L232>`_
"""

intra_list_similarities = []
Expand All @@ -254,7 +254,7 @@ def personalization(recommendations: List[list]):
Returns:
(float): personalization
`Original: <https://github.com/statisticianinstilettos/recmetrics/blob/master/recmetrics/metrics.py#L160>`_
`Original <https://github.com/statisticianinstilettos/recmetrics/blob/master/recmetrics/metrics.py#L160>`_
"""

n_predictions = len(recommendations)
Expand Down Expand Up @@ -306,7 +306,7 @@ def novelty(recommendations: List[list], item_popularities: dict, num_users: int
Solving the apparent diversity-accuracy dilemma of recommender systems.
Proceedings of the National Academy of Sciences, 107(10), 4511-4515.
`Original: <https://github.com/statisticianinstilettos/recmetrics/blob/master/recmetrics/metrics.py#L14>`_
`Original <https://github.com/statisticianinstilettos/recmetrics/blob/master/recmetrics/metrics.py#L14>`_
"""

epsilon = 1e-10
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
setup(
name="rexmex",
packages=find_packages(),
version="0.0.9",
version="0.0.10",
license="Apache License, Version 2.0",
description="",
author="AstraZeneca BIKG Team",
author_email="[email protected]",
url="https://github.com/AstraZeneca/rexmex",
download_url="https://github.com/AstraZeneca/rexmex/archive/v_00009.tar.gz",
download_url="https://github.com/AstraZeneca/rexmex/archive/v_00010.tar.gz",
keywords=keywords,
install_requires=install_requires,
setup_requires=setup_requires,
Expand Down

0 comments on commit 6d166ff

Please sign in to comment.