—
Backpropagate through tanh
Tutor me on https://mlprep.iwase.dev/item/ml-screen-neural-networks-standard-backprop/. This is a screening item. If window.mlPrepAgent is available, read attempts for item ml-screen-neural-networks-standard-backprop before tutoring. Inspect my attempt, keep the item ID, and do not reveal the full answer first. After a real attempt, append its record with recorded_by agent, include agent_session_id when available, and read it back.Problem
A scalar network has , , and . At , , , and , compute the forward pass, , and .
Reveal answer or reference solution
The forward pass gives , , and . By the chain rule,
Also,
The output weight has zero gradient because its input activation is zero.
Previous attempts
Loading attempts saved in this browser…