CT2 Assignment
CT2 Assignment
(4) Use Naïve Bayes Classifier for the following dataset to predict
whether we can pet or not?
(5) You need to classify customers into segments like "Frequent Buyers"
and "Occasional Buyers" based on their purchasing behavior using the K-
Nearest Neighbors (KNN) algorithm.
(a) Briefly explain how KNN works and the role of "K" in the algorithm. (10
marks)
(b) How would you prepare a dataset with both numerical and categorical
features for use with KNN? (3 marks)
(d) What are the challenges of using KNN for this task, and how could they
be addressed? (4 marks)