Skip to content

Glossary: ML Basics

Sparse matrix

Also written: sparse_output

A memory-saving table format that stores only the non-zero values. OneHotEncoder returns one by default; sparse_output=False gives an ordinary array.

Where the book teaches it

Related terms

One-hot encoding