Maths for ML / Notation

∪\cup

union

SetsBeginner

Say it “union”

Everything that is in either set.

Example

{1,2}∪{2,3}={1,2,3}\{1,2\} \cup \{2,3\} = \{1,2,3\}

In code

A | B

Where you’ll see it in ML

Merging vocabularies or datasets.

Don’t confuse it with

← All 94 symbols