Relation

Sigmoid/Logistic vs. TanH/Hyperbolic Tangent functions

  • tanh works almost always better than Sigmoid function, but Sigmoid should be used for the output layer of binary classification models.
  • tanh is in range (-1, 1), but Sigmoid is in range (0, 1).
  • Using tanh activation functions in the hidden layers optimizes training because it centers the data around 0 rather tahn 0.5

0

1

Updated 2021-11-11

Tags

Data Science