AWS Certified AI PractitionerAI/ML and Generative AI FundamentalsEasy

An e-commerce company wants to use machine learning to recommend products to customers. They have a vast amount of historical purchase data, including customer IDs, product IDs, and ratings. Which type of machine learning task is most appropriate for building a product recommendation system based on this data?

  1. ARegression
  2. BClustering
  3. CClassification
  4. DReinforcement Learning
Show answer & explanation

Correct answer: C. Classification

Product recommendation systems often involve predicting whether a user will like or buy a specific product, which is a form of classification (e.g., binary classification: 'buy' or 'not buy', or multi-class if predicting categories of interest). Collaborative filtering, a common recommendation technique, can be framed as a classification task to predict user preferences. While other ML approaches can be involved, at its core, predicting interaction with discrete items often falls under classification.

Why the other options are wrong

  • A. Regression is for predicting continuous values, not typically for discrete recommendations.
  • B. Clustering could be used for grouping similar customers or products, but not for direct recommendations based on past interactions.
  • D. Reinforcement Learning could be used for dynamic recommendations over time, but is not the primary or most common approach for initial static product recommendations from historical data.

Recommendation Systems (ML Task)

Recommendation systems often leverage machine learning techniques, predominantly classification or collaborative filtering, to predict user preferences and suggest relevant items.

  • Can be framed as predicting a discrete outcome (e.g., 'like', 'dislike', 'buy', 'not buy').
  • Collaborative filtering is a common technique, often using classification or matrix factorization.
  • Aims to personalize user experience by suggesting relevant products, movies, or content.

Memory trick: Predicting outcomes, grouping data, or learning by doing.

More AI/ML and Generative AI Fundamentals questions