Skip to content

Glossary: Probability for ML

Boolean array

Also written: boolean arrays

An array of True and False values, usually made by comparing an array with something, like `rng.random(10) < 0.3`. NumPy counts True as 1, so `.sum()` counts them and `.mean()` gives their share.

Where the book teaches it

Related terms

Boolean indexingArrayIndicator