3 ms·
Hi! This is really great page, I love reading it. Just a few tips: The for loops in your code can be made more conscise: instead of for i in range(len(movie
by fabatka 9y ago
Hi! This is really great page, I love reading it. Just a few tips:
The for loops in your code can be made more conscise: instead of
for i in range(len(movies_with_overviews)):
movie=movies_with_overviews[i]
you can write
for movie in movies_with_overviews:
Also, at around In[82], you don't declare Y, but still reference it at the train-test split. Another way to do the train-test split is by using the train-test split in scikit-learn: http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html http://scikit-learn.org/stable/modules/generated/sklearn.mod...