Question: Please write code in python: det load-rating-matrix(filename = 'movie1ens-train.csv'): Load the rating matrix from a CSV file. In the CSV file, each line represents Cuser
Please write code in python:

det load-rating-matrix(filename = 'movie1ens-train.csv'): Load the rating matrix from a CSV file. In the CSV file, each line represents Cuser id, movie id, rating). Note the ids start from 1 in this dataset. Input: filename: the file name of a CSV file, a string Output: R: the rating matrix, a float numpy matrix of shape m by n. Here m is the number of movies, n is the number of users return R
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
