Practice free →
HomeClaudeaifoundationsmlp_and_activations › For an MLP layer with input X ∈ ℝⁿˣᵈ, hidden wid…

For an MLP layer with input X ∈ ℝⁿˣᵈ, hidden width h and output q, the weight shapes are

AW¹ ∈ ℝᵈˣⁿ and W² ∈ ℝⁿˣᵠ
BW¹ ∈ ℝᵈˣʰ and W² ∈ ℝʰˣᵠ
CW¹ ∈ ℝʰˣᵈ and W² ∈ ℝᵠˣʰ
DW¹ ∈ ℝⁿˣʰ and W² ∈ ℝʰˣⁿ
Answer & Solution
Correct answer: B. W¹ ∈ ℝᵈˣʰ and W² ∈ ℝʰˣᵠ
Hidden layer maps d inputs to h units, so W¹ ∈ ℝᵈˣʰ. Output layer maps h hidden units to q outputs, so W² ∈ ℝʰˣᵠ. Standard MLP forward-pass shapes.
Solve this in the app — Claude practice & 24k+ MCQs →
Related questions