The last lab from chapter 2 isn’t clear to me.
I don’t understand how the imdb.rating can be normalized with respect to imdb.votes.
I understand from the scaling.js file that the “imdb.votes” field must be rescaled. Movies with little votes get a normalized value close to 1, movies with a lot of votes get a value close to 10.
However, I don’t see how this can have an effect on the rating … ? Does a rating of e.g. 1.7 have to be interpreted differently if there are more or less votes ?
Furthermore, the last line in the scaling.js file says :
normalized_rating = average(scaled_votes, imdb.rating)
I don’t see what an average of two “distinct” values could mean. Is this a function call ? An average with two arguments in a different scale doesn’t really make sense. Is this a formula ? Then the comma must be some type ?
Perhaps it’s something obvious, but at this moment I don’t see what is meant by this at all.
Thank you for explaining what is meant by this “normalization”.