Naive Bayes

medium· Machine Learningruns: 0

Implement a Gaussian Naive Bayes classifier from scratch. For each class, fit the mean and variance of every feature. Classify by computing the log posterior using the Gaussian likelihood and the class prior, then return the class with the highest posterior.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.