The design matrix X for n training examples with d features (plus intercept) has shape
An × (d + 1)
Bn × n
Cd × d
Dd × n
Answer & Solution
Correct answer: A. n × (d + 1)
X stacks training examples as ROWS
(d+1) columns include the d features plus the x₀ = 1 intercept term.
Keep practising Linear Regression and Supervised Learning
Browse all Linear Regression and Supervised Learning questions for Claude, or explore more Aifoundations topics.
Related questions
Split batch from stochastic descentThe resulting per-example log-likelihood is, up to constantsClosed-form normal equations require XᵀX to beLogistic regression uses which hypothesis function?The PROBABILISTIC justification for the least-squares cost assumes the noise ε⁽ⁱ⁾ in y⁽ⁱ⁾ The closed-form 'normal equations' solution for least-squares linear regression isThe LMS (Widrow–Hoff) update rule on a single training example is'Α' in θⱼ := θⱼ − α·∂J/∂θⱼ is called the