Sets, shapes and definitions

V∖{y}\mathcal{V} \setminus \{y\} Set difference

A ∖ B: everything in A that is not in B.

In ML papers

A∖BA \setminus B (read "AA minus BB") is the set of elements of AA that are not in BB. In ML papers it usually removes one item: V∖{y}\mathcal{V} \setminus \{y\} is every token except the correct one, {1,…,N}∖{i}\{1, \ldots, N\} \setminus \{i\} is every index but ii, as in the negatives of a contrastive loss.

A similar idea with a minus in the subscript: x−i\mathbf{x}_{-i} means all entries of x\mathbf{x} except entry ii.

How to type it

LaTeXShows
\setminus∖\setminus
\backslash same glyph, tighter spacing\\backslash

A worked example

{1,2,3,4}∖{2,4}={1,3}\{1, 2, 3, 4\} \setminus \{2, 4\} = \{1, 3\}

Common confusions

Related

D={(xi,yi)}i=1N\mathcal{D} = \{(\mathbf{x}_i, y_i)\}_{i=1}^{N}Set bracesA∪B,A∩BA \cup B, \quad A \cap BUnion and intersectionB⊆D\mathcal{B} \subseteq \mathcal{D}SubsetA∩B=∅A \cap B = \emptysetEmpty set

Decode this example →