There’s a contrast between collaborative filtering and content-based filtering in a slide, saying the former recommends items based on rating of users who gave similar ratings.
From the perspective of cost function expression, how should we understand this intuitively and mathematically?