Читать книгу Handbook of Intelligent Computing and Optimization for Sustainable Development - Группа авторов - Страница 26

1.4.1.1.2 Tanh

Оглавление

Tanh is quite similar to sigmoid but better and ranges from −1 to 1.

The main advantage of using tanh is that we can get outputs +ve as well as −ve which helps us to predict values which can be both +ve and −ve. The slope for the tanh graph is quite steeper than the sigmoid. Using the tanh or sigmoid totally depends on the dataset being used and the values to be predicted. Please see Figure 1.4.


Figure 1.3 Sigmoid function.


Figure 1.4 Tanh function.

Handbook of Intelligent Computing and Optimization for Sustainable Development

Подняться наверх