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

Implemented MovieRecommender class, All Junit tests passed #73

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

AlfredoGJ
Copy link

@AlfredoGJ AlfredoGJ commented Oct 7, 2019

Solution implemented reading from the movies.txt file and inserting reviews data into a FastByIDMap of PreferenceArray, this map is used to create the model.

@AlfredoGJ AlfredoGJ changed the title Solution, Tests Passed Implemented MovieRecommender class, All Junit tests passed Oct 9, 2019

}

GenericPreference getPreference(String filePath) {
Copy link

Choose a reason for hiding this comment

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

  • Handle access modifier
    • Investigated what kind of access do you have there.

String userID = "";
Float score = 0.0f;

BufferedReader reader;
Copy link

Choose a reason for hiding this comment

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

This variable doesn't have any purpose here!


void addPreference(String userID, String productID, float score) {

reviewCount++;
Copy link

Choose a reason for hiding this comment

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

This part doesn't have any relationship with addPreference method.
Try to split the methods

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, Hayde, I split the function

return null;
}

void addPreference(String userID, String productID, float score) {
Copy link

Choose a reason for hiding this comment

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

Handle access modifier

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, I forgot that

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.

3 participants