A dense layer has 3 inputs and 4 outputs with one bias per output. Count parameters.
Answer and explanation
16
3×4+4=16.
Subjects
Choose questions individually, practise online, or create a worksheet with matching answers. Counts include generated variants, not only authored originals.
16
3×4+4=16.
0
max(0,−2)=0.
3
2×3−1×4+1=3.
Their composition is another affine map
Affine compositions remain affine.
The columns of W and entries of x
Matrix multiplication requires compatible inner dimensions.
Capacity, data quality, regularization, optimization and task structure all matter. More parameters alone do not establish unseen-data performance.
Credit multiple relevant factors and evaluation.
A dense layer computes z=Wx+b followed by an activation. Dimensions must agree; each output has its own weighted combination.
UniversityA dense layer computes z=Wx+b followed by an activation. Dimensions must agree; each output has its own weighted combination.
UniversityA computational graph records how intermediate values compose. Forward evaluation computes values; reverse differentiation accumulates gradients.
UniversityA computational graph records how intermediate values compose. Forward evaluation computes values; reverse differentiation accumulates gradients.
UniversityScaled dot-product attention forms weights softmax(QKᵀ/sqrt(dk)) and uses them to combine value vectors. Dimensions and masks are part of the definition.
Advanced universityScaled dot-product attention forms weights softmax(QKᵀ/sqrt(dk)) and uses them to combine value vectors. Dimensions and masks are part of the definition.
Advanced universityAn embedding represents an item as a vector learned or designed for a task. Nearby vectors reflect the representation’s notion of similarity, not universal meaning.
UniversityAn embedding represents an item as a vector learned or designed for a task. Nearby vectors reflect the representation’s notion of similarity, not universal meaning.
UniversityAssume one trainable bias per output and no parameter sharing.
UniversityAssume one trainable bias per output and no parameter sharing.
UniversityThis asks for a forward pass, not the derivative at the nondifferentiable point zero.
UniversityThis asks for a forward pass, not the derivative at the nondifferentiable point zero.
UniversitySoftmax normalizes scores; this alone does not prove probabilities are calibrated to real-world frequencies.
Advanced universitySoftmax normalizes scores; this alone does not prove probabilities are calibrated to real-world frequencies.
Advanced universityUnderstand learning tasks, datasets, honest evaluation, privacy and human responsibility. No paid AI tool is required.
Work through regression, gradients, classification and generalization using paper-based examples.
Compare trees, clustering, PCA and validation without confusing training performance with evidence of generalization.
Build from artificial neurons and backpropagation to attention and embedding geometry.
Practise clear prompting, retrieval-grounded workflows, evidence checking and permission-aware deployment.