Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added time performance tests #1765

Merged
merged 12 commits into from Jul 11, 2022
Merged

Added time performance tests #1765

merged 12 commits into from Jul 11, 2022

Conversation

ChuyangKe
Copy link
Contributor

Description

Added time performance tests for rating and ranking metrics.

The time baselines are provided to ensure that the metrics can be computed in a reasonable amount of time on the same testing server. Currently the thresholds are set as MEAN + 5 * STANDARD DEVIATION based on benchmark results.

List of testing functions:

  • test_merge_rating
  • test_merge_ranking
  • test_python_rmse
  • test_python_mae
  • test_python_rsquared
  • test_python_exp_var
  • test_get_top_k_items
  • test_get_top_k_items_largek
  • test_python_ndcg_at_k
  • test_python_map_at_k
  • test_python_precision
  • test_python_recall
  • test_python_auc
  • test_python_logloss

Related Issues

Related to issue #1750

Checklist:

  • I have followed the contribution guidelines and code style for this project.
  • I have added tests covering my contributions.
  • I have updated the documentation accordingly.
  • This PR is being made to staging branch and not to main branch.

Copy link
Collaborator

@miguelgfierro miguelgfierro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, some comments

tests/unit/recommenders/evaluation/test_python_time.py Outdated Show resolved Hide resolved
# The thresholds are calculated by MEAN + 5 * STANDARD DEVIATION.


def test_merge_rating(rating_true, rating_pred):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pradnyeshjoshi Chuyang needs to add these tests to some of the test groups. I'm thinking that we might want to create a small tutorial to help developers add tests. What do you think?

Copy link
Collaborator

@miguelgfierro miguelgfierro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really good

Copy link
Collaborator

@miguelgfierro miguelgfierro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great work Chuyang

@miguelgfierro miguelgfierro merged commit 0fba706 into staging Jul 11, 2022
@miguelgfierro miguelgfierro deleted the chuyang/time_test branch July 11, 2022 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants