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}; by a rule, {x:x>0} or {x∣x>0}; or, with an index range after it, a sequence: {(xi,yi)}i=1N is a dataset of N input-label pairs.
How to type it
LaTeX
Shows
\{ \ldots \}
{…}
\{x \mid x > 0\}set-builder
{x∣x>0}
A worked example
{x∈{1,…,6}∣x even}={2,4,6}
Common confusions
To type literal braces in LaTeX you need \{ and \}; plain { } only group things and do not show.