A company is building a recommendation system for an e-commerce platform. They have user-item interaction data and want to use matrix factorization. However, the dataset is sparse (99% missing interactions). Which approach should the data scientist take to train the model effectively?
Trap 1: Impute missing values with zeros and use singular value…
Imputing zeros biases the model because missing does not mean zero preference.
Trap 2: Remove all users and items with fewer than 10 interactions to…
This reduces data and may lose valuable patterns.
Trap 3: Use item-based collaborative filtering with cosine similarity
Collaborative filtering also suffers from sparsity; it does not inherently handle missing interactions better.
- A
Impute missing values with zeros and use singular value decomposition (SVD)
Why wrong: Imputing zeros biases the model because missing does not mean zero preference.
- B
Use alternating least squares (ALS) with implicit feedback and assign lower confidence to unobserved interactions
ALS with implicit feedback naturally handles sparsity by weighting unobserved interactions.
- C
Remove all users and items with fewer than 10 interactions to reduce sparsity
Why wrong: This reduces data and may lose valuable patterns.
- D
Use item-based collaborative filtering with cosine similarity
Why wrong: Collaborative filtering also suffers from sparsity; it does not inherently handle missing interactions better.