Set difference
A ∖ B: everything in A that is not in B.
In ML papers
(read " minus ") is the set of elements of that are not in . In ML papers it usually removes one item: is every token except the correct one, is every index but , as in the negatives of a contrastive loss.
A similar idea with a minus in the subscript: means all entries of except entry .
How to type it
| LaTeX | Shows |
|---|---|
\setminus | |
\backslash same glyph, tighter spacing |
A worked example
Common confusions
- The backslash between two sets is not division. In linear algebra, though, (MATLAB style) means solving .