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

How can I change the value of predicted ratings #326

Open
h4y4h0o opened this issue Apr 28, 2020 · 0 comments
Open

How can I change the value of predicted ratings #326

h4y4h0o opened this issue Apr 28, 2020 · 0 comments

Comments

@h4y4h0o
Copy link

h4y4h0o commented Apr 28, 2020

Hi,

I'm using the BiasedMF recommender of libRec in my Java code, and I would like to change all the predicted ratings done by the BiasedMF by a value (for example 0). I do something like that:

List recomList =MFrecommender.getRecommendedList();
for (int i = 0; i < recomList.size(); i++) {
RecommendedItem newRecItem = new
GenericRecommendedItem(recomList.get(i).getUserId(),recomList.get(i).getItemId(), 0);
MFrecommender.getRecommendedList().set(i, newRecItem);
}

But when at the end I re-do a "MFrecommender.getRecommendedList();" the values of predicted ratings are not changed by 0.

How can we change the values of predicted ratings of a recommender system and evaluate it based on the changed values?

Thanks in advance for your response.

@h4y4h0o h4y4h0o closed this as completed Apr 29, 2020
@h4y4h0o h4y4h0o reopened this Apr 29, 2020
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

No branches or pull requests

1 participant