What is the time complexity of predicting a single sample with Naive Bayes?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Asks for the time complexity of classifying one new sample with a trained Naive Bayes model. Tests whether you can derive the cost from the per-class scoring formula, say which quantities the cost depends on, and account for sparse inputs in Multinomial and Bernoulli variants.