AI engineering glossary · Classical ML algorithms

What is laplace smoothing?

Laplace smoothing (also called Additive smoothing, Add-one smoothing): Adding a small constant, usually 1, to every count before turning counts into probabilities, so an event never seen in training does not get probability zero. Without it, one unseen word can wipe out a whole naive Bayes product.

Level: intermediateTopic: Classical ML algorithms

Laplace smoothing: an example

If 'cashback' never appeared in non-spam among 1,000 words with vocabulary 5,000, its probability is (0+1)/(1000+5000), not 0.

Related terms

More Classical ML algorithms terms

Where you learn it

Laplace smoothing is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.