← 📊 Evaluation & ML FoundationsNEXT IN EVALUATION & ML FOUNDATIONSClustering: K-Means, Hierarchical, DBSCAN→
Core
Generative vs Discriminative Models (Naive Bayes)
A discriminative model learns P(y|x) directly, the decision boundary. A generative model learns the joint P(x,y), so it models how the data is produced and recovers the label via Bayes. Naive Bayes is the canonical generative classifier and rests on a strong conditional-independence assumption. AI, ML, and GenAI engineer interviews probe this to check whether you know that generative wins with little data or missing features while discriminative wins on raw accuracy once data is plentiful.
a free account unlocks the core curriculum tier · no card
RELATED CONCEPTS
PRACTICE THIS IN REAL QUESTIONS
Machine Learning & Data ScienceHow do k-NN and Naive Bayes work, and what are their assumptions and tradeoffs?→Machine Learning & Data ScienceWhy does Naive Bayes work so well despite an assumption that is almost always false?→Coding & DSAImplement Gaussian Naive Bayes from scratch: fit per-class statistics and classify in log space.→System Design for AI in ProductionDesign a real-time content moderation system for text and images at platform scale.→Machine Learning & Data ScienceHow does an SVM work, and what does the kernel trick actually buy you?→Coding & DSAImplement k-nearest-neighbors classification from scratch, and make prediction efficient.→
COMPANIES THAT ASSUME THIS
