1 when the condition inside is true, 0 when it is false.
In ML papers
1[condition] is 1 if the condition holds and 0 otherwise. It turns a test into a number you can sum: โiโ1[y^โiโ=yiโ] counts correct predictions, and the one-hot label is ykโ=1[y=k].
Other meanings, by context
Bold 1 as a vector.1 (or 1nโ) is often the vector of all ones: 1โคx is the sum of x's entries.
How to type it
LaTeX
Shows
\mathbb{1}[y = k]
1[y=k]
\mathbf{1}\{y = k\}
1{y=k}
A worked example
i=1โ4โ1[y^โiโ=yiโ]=1+0+1+1=3
Three of four predictions are right: accuracy 3/4.