Skip to content

Implemented MovieRecommender class, All Junit tests passed #73

Open
AlfredoGJ wants to merge 6 commits intorilopez:masterfrom
AlfredoGJ:master
Open

Implemented MovieRecommender class, All Junit tests passed #73
AlfredoGJ wants to merge 6 commits intorilopez:masterfrom
AlfredoGJ:master

Conversation

@AlfredoGJ
Copy link
Copy Markdown

@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
Comment thread src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommender.java Outdated

}

GenericPreference getPreference(String filePath) {
Copy link
Copy Markdown

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
Copy Markdown

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!

Comment thread src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommender.java Outdated

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

reviewCount++;
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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