Collab learner - what to pass to learn.bias?

Hi all!

I am using the ml100k notebook from lesson 5 as a guide to use the ml20m dataset. I cannot figure out what to pass to learn.bias. It always comes up with an error. I understand that it’s looking for an array. The example notebook is looking for titles but to start with I am just trying to feed it an array of the movieIds.
The below is what I used to create the array but learn.bias spits out an error when I put in movies as the argument.

group = ratings.groupby(‘movieId’)[‘rating’].count()
movies = group.sort_values(ascending = False).index.values[:1000]

Can anyone help with this? I know it’s an elementary question but I can’t figure it out and it’s winding me up lol

1 Like