Practice free →
HomeClaudeaifoundationsmlp_and_activations › A 'thresholding' activation taking 0 or 1 cleanl…

A 'thresholding' activation taking 0 or 1 cleanly is impractical for gradient-based learning because

AThresholding scales output range beyond unit interval
BThe optimiser needs continuous gradients to update
CThresholding requires a custom CUDA kernel always
DThresholding violates the universal-approximation claim
Answer & Solution
Correct answer: B. The optimiser needs continuous gradients to update
A hard threshold has zero gradient almost everywhere — there is no signal for gradient descent to follow. Sigmoid was originally a smooth differentiable approximation to a thresholding unit.
Solve this in the app — Claude practice & 24k+ MCQs →
Related questions