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.
Keep practising MLP and Activations
Browse all MLP and Activations questions for Claude, or explore more Aifoundations topics.
Related questions
Flip and match each activationWhy 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 areThe derivative of sigmoid(x) equalsThe derivative of the ReLU function isThe sigmoid function squashes its input to which interval?The ReLU activation function is defined asWhy does a stack of affine layers collapse without an activation function?