1. University MCA (AI/ML) Semester 2
  2. CAB212
  3. Unit 1

CAB212 · Unit 1: Machine learning foundations

Types of machine learning and the ML workflow

9 practice questions

Key points

  • Supervised = labeled data; unsupervised = no labels
  • Classification predicts categories; regression predicts numbers
  • Reinforcement learning learns from rewards
  • Always split data before training

Machine learning builds models that learn patterns from data instead of following hand-written rules.

TypeDataGoalExample
SupervisedInputs with labelsPredict the labelSpam detection, house price
UnsupervisedInputs onlyFind structureCustomer clustering
Semi-supervisedFew labels, many unlabeledUse bothLabeling images cheaply
ReinforcementRewards from an environmentLearn a policyGame playing

Supervised problems split into classification (discrete label) and regression (continuous value).

Workflow: define the problem, collect data, clean and explore, engineer features, split data, train, evaluate, tune, deploy and monitor.

Exam pitfall: predicting a house price is regression, but predicting whether a house sells above a threshold is classification, even with the same data.

Try two questions

Question 1 · Tier 1, Recall

Grouping customers by purchase behaviour without predefined groups is:

  1. Regression onto a numeric target
  2. Supervised learning with known groups
  3. Clustering (unsupervised)
  4. Classification into predefined classes
Show the answer

C. No predefined labels exist, so it is unsupervised clustering.

Question 2 · Tier 3, Apply

Predicting whether a house price will exceed Rs 50 lakh (yes/no) from its features is:

  1. Clustering, because houses are grouped by price
  2. Reinforcement learning, because a threshold is used
  3. Classification, because the target is categorical
  4. Regression, because price is numeric
Show the answer

C. The prediction target is yes/no, so it is classification even though price underlies it.