def cofi_cost_func(X, W, b, Y, R, lambda_):
Returns the cost for the content-based filtering
X (ndarray (num_movies,num_features)): matrix of item features
W (ndarray (num_users,num_features)) : matrix of user parameters
b (ndarray (1, num_users) : vector of user parameters
Y (ndarray (num_movies,num_users) : matrix of user ratings of movies
R (ndarray (num_movies,num_users) : matrix, where R(i, j) = 1 if rated
lambda_ (float): regularization parameter
J += np.square(r * (np.dot(w,x) + b_j - y))
J += (lambda_/2) * (np.sum(np.square(W)) + np.sum(np.square(X)))