Skip to content

Remove explicit mapping of ratings to integers from RBM notebooks#1585

Merged
miguelgfierro merged 4 commits intostagingfrom
pradjoshi/rbm_cast_ratings
Dec 17, 2021
Merged

Remove explicit mapping of ratings to integers from RBM notebooks#1585
miguelgfierro merged 4 commits intostagingfrom
pradjoshi/rbm_cast_ratings

Conversation

@pradnyeshjoshi
Copy link
Collaborator

Description

Previous fix (PR #1581) required user ratings to be explicitly mapped to integers in RBM notebooks. This PR implements changes to the current RBM implementation, so that this explicit mapping is not needed. In particular, a lookup table is maintained internally that maps integer indices to their float rating counterparts.

Related Issues

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.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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.

LGTM

@anargyri
Copy link
Collaborator

LGTM

Please don't merge into staging yet

@anargyri
Copy link
Collaborator

LGTM

Please don't merge into staging yet

You may merge now.

@codecov-commenter
Copy link

Codecov Report

Merging #1585 (c5d0824) into staging (ba24adc) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           staging    #1585      +/-   ##
===========================================
+ Coverage    61.88%   61.90%   +0.01%     
===========================================
  Files           84       84              
  Lines         8458     8462       +4     
===========================================
+ Hits          5234     5238       +4     
  Misses        3224     3224              
Flag Coverage Δ
pr-gate 61.90% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
recommenders/models/rbm/rbm.py 73.66% <100.00%> (+0.47%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba24adc...c5d0824. Read the comment docs.

@miguelgfierro
Copy link
Collaborator

everything is green so I'll merge

@miguelgfierro miguelgfierro merged commit febabfd into staging Dec 17, 2021
@miguelgfierro miguelgfierro deleted the pradjoshi/rbm_cast_ratings branch December 17, 2021 09:15
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.

4 participants