Notation conventions
x ( i ) , W [ l ] \mathbf{x}^{(i)},\; W^{[l]} x ( i ) , W [ l ] Superscript in parenthesesAn index in a superscript: x⁽ⁱ⁾ is the i-th training example, W⁽ˡ⁾ the weights of layer l. Not a power.
In ML papers Parentheses or brackets around a superscript mark it as an index, not an exponent . x ( i ) \mathbf{x}^{(i)} x ( i ) is the i i i -th training example and y ( i ) y^{(i)} y ( i ) its label; W [ l ] W^{[l]} W [ l ] or W ( l ) W^{(l)} W ( l ) belongs to layer l l l . This frees the subscript for entries: x j ( i ) x^{(i)}_j x j ( i ) is feature j j j of example i i i .
How to type it LaTeX Shows x^{(i)}x ( i ) x^{(i)} x ( i ) W^{[l]}W [ l ] W^{[l]} W [ l ]
A worked example x ( 2 ) = ( 0.4 , 1.3 ) , x 1 ( 2 ) = 0.4 \mathbf{x}^{(2)} = (0.4, 1.3), \quad x^{(2)}_1 = 0.4 x ( 2 ) = ( 0.4 , 1.3 ) , x 1 ( 2 ) = 0.4 Second example, first feature.
Common confusions Equations that use it Related x i , W q , p θ , d model x_i,\; W_q,\; p_\theta,\; d_{\text{model}} x i , W q , p θ , d model Subscript (index or label) x 2 , β t , W Q x^2,\; \beta^t,\; W^Q x 2 , β t , W Q Superscript (power or label) x ∈ R d \mathbf{x} \in \mathbb{R}^{d} x ∈ R d Bold lowercase (vector) Decode this example →
Further reading, by other authors
Mathematics for Machine Learning by Marc Peter Deisenroth, A. Aldo Faisal, Cheng Soon Ong . Linear algebra, calculus and probability, written for machine learning.Deep Learning by Ian Goodfellow, Yoshua Bengio, Aaron Courville . The standard reference text, with a chapter on notation and the math background.As an Amazon Associate I earn from qualifying purchases.