AI engineering glossary · Classical ML algorithms

What is mini-batch k-means?

Mini-batch k-means: A faster variant of k-means that updates the centres using small random batches of data at each step instead of all the rows. It trades slight accuracy for large speed and memory savings on very big datasets.

Level: advancedTopic: Classical ML algorithms

Mini-batch k-means: an example

MiniBatchKMeans(batch_size=1024) clusters 20 million app-event rows without loading them all at once.

Related terms

More Classical ML algorithms terms

Where you learn it

Mini-batch k-means 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.