Hi, I’m failing to replicate the MSE loss function used in Lesson 5 (movie recommendations).
I get 1.4
and learn.fit()
gives 0.8
. Why?
My code is:
from sklearn.metrics import mean_squared_error
pred_scores = ratings.iloc[val_idxs]
pred_scores["preds"] = preds
mean_squared_error(pred_scores["rating"], pred_scores["preds"])
Thanks in advance!