Home › Claude › aifoundations › mlp_and_activations › The tanh function squashes its input to which in…
The tanh function squashes its input to which interval?
AThe interval (-1, 1)
BThe interval (-∞, ∞)
CThe interval [0, ∞)
DThe interval (0, 1)
Answer & Solution
Correct answer: A. The interval (-1, 1)
tanh(x) = (1 - exp(-2x)) / (1 + exp(-2x)) maps ℝ into (-1, 1). It is point-symmetric about the origin, unlike sigmoid which is centred at 0.5.
Related questions
Why are sigmoids still used in recurrent networks (e.g., LSTMs) even after ReLU's rise?A 'thresholding' activation taking 0 or 1 cleanly is impractical for gradient-based learniDepth often beats width for the same expressive power becauseWhy is the sigmoid prone to the vanishing-gradient problem?For an MLP layer with input X ∈ ℝⁿˣᵈ, hidden width h and output q, the weight shapes areParametrised ReLU (pReLU) adds which capability over plain ReLU?Why has ReLU largely replaced sigmoid in hidden layers?The universal approximation theorem (Cybenko 1989) for MLPs states that