The hyperbolic tangent

The hyperbolic tangent is another commonly used activation function. It can be represented graphically as follows:

The hyperbolic tangent is very similar to the sigmoid. This is the correct sigmoid function, . Therefore, such a function has the same characteristics as the sigmoid we looked at earlier. Its nature is non-linear, it is well suited for a combination of layers, and the range of values ​​of the function is . Therefore, ...

Get Hands-On Machine Learning with C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.