Sets, shapes and definitions

D={(xi,yi)}i=1N\mathcal{D} = \{(\mathbf{x}_i, y_i)\}_{i=1}^{N} Set braces

A set: a collection of items. {x | condition} is every x that satisfies the condition.

In ML papers

Curly braces make a set. Listing items, {1,2,3}\{1, 2, 3\}; by a rule, {x:x>0}\{x : x > 0\} or {x∣x>0}\{x \mid x > 0\}; or, with an index range after it, a sequence: {(xi,yi)}i=1N\{(\mathbf{x}_i, y_i)\}_{i=1}^{N} is a dataset of NN input-label pairs.

How to type it

LaTeXShows
\{ \ldots \}{…}\{ \ldots \}
\{x \mid x > 0\} set-builder{x∣x>0}\{x \mid x > 0\}

A worked example

{x∈{1,…,6}∣x even}={2,4,6}\{x \in \{1, \ldots, 6\} \mid x \text{ even}\} = \{2, 4, 6\}

Common confusions

Related

x∈Rd\mathbf{x} \in \mathbb{R}^dElement ofD={(xi,yi)}i=1N\mathcal{D} = \{(\mathbf{x}_i, y_i)\}_{i=1}^{N}Dataset (𝒟)p(y∣x)p(y \mid x)Given (conditional bar)f(x)={xx>00otherwisef(x) = \begin{cases} x & x > 0 \\ 0 & \text{otherwise} \end{cases}Cases (piecewise)

Decode this example →