A streaming app lists its movies as a table, movies: one row per movie, saying how much of each genre it has. taste says how much you like each genre, as in Match score. Write scores(movies, taste): how much you’ll enjoy each movie, one score per movie, so the app can show it under every poster.
A streaming app’s catalogue is a table: one row per movie, how much of each genre it has. Your taste sits on top, the same genres in the same order. Adding the whole table up gives one number, and one number can’t pick a movie. The goal is a score for every movie, beside its own row, like the bars it ends on. Your scores(movies, taste) gives them all at once.
scores(movies, taste)| movies | the catalogue (a numpy array), one row per movie: how much of each genre it has | e.g. [[3, 0, 0, 1], [0, 3, 0, 1], [1, 2, 0, 3]] |
| taste | how much you like each genre (a numpy array), the same genres in the same order | e.g. [2, −1, 0, 1] |
| returns | how much you'll enjoy each movie: one score per movie | |