A script capital usually names a set, a space, a distribution or a loss.
In ML papers
Calligraphic capitals mark "big" objects. Common ones: X and Y the input and output spaces, D a dataset (Dataset (𝒟)), L a loss (Loss (ℒ)), N the normal distribution (Normal distribution), A and S action and state spaces, V a vocabulary, B a mini-batch.
Other meanings, by context
Complexity.O(n2) is big-O: grows at most like n2.
Graphs.G=(V,E), a graph's vertices and edges.
How to type it
LaTeX
Shows
\mathcal{X}
X
A worked example
∣V∣=50,000
A vocabulary of fifty thousand tokens; bars around a set give its size.