Notation conventions

y=Wx+by = Wx + b Italic letters (variables)

A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).

In ML papers

A plain italic letter is a variable. Papers follow loose conventions:

xx an input and yy a label or target, y^\hat{y} a prediction; WW a weight matrix and bb a bias; hh a hidden state; zz a latent variable (or a pre-activation); nn or NN a count of examples, dd a dimension, LL a number of layers; i,j,ki, j, k indices; tt a time step and TT the last one; ee Euler's number. Lowercase usually means a scalar or vector, uppercase a matrix or a count. A paper's notation section (or the sentence after the equation) overrides all of this.

How to type it

LaTeXShows
xxx
\mathit{x}x\mathit{x}

A worked example

y=wx+b=2×3+1=7y = wx + b = 2 \times 3 + 1 = 7

A one-input linear model: weight w=2w = 2, bias b=1b = 1, input x=3x = 3.

Equations that use it

Related

x∈Rd\mathbf{x} \in \mathbb{R}^{d}Bold lowercase (vector)W∈Rm×n\mathbf{W} \in \mathbb{R}^{m \times n}Bold uppercase (matrix)xi,  Wq,  pθ,  dmodelx_i,\; W_q,\; p_\theta,\; d_{\text{model}}Subscript (index or label)Q,K,VQ, K, VQ, K, V (query, key, value)

Decode this example →