0

I have a question regarding the tanh function. I trained an NN (with tanh activation functions in hidden layers) on a multiclass dataset and visualised the tanh values of the complete samples from the dataset passed through the NN.

The question is why I only have the -1 and 1 values? What does it mean can we conclude something from that?

enter image description here

thank a lot

malocho
  • 183
  • 1
  • 6
  • almost nothing can be concluded. It may be the result of bad architecture, type of data or simply be normal – Nikos M. Mar 20 '21 at 19:37
  • The use of activation function is used to make linear data as non-linear. Just like sigmoid returns you the values as either 0 or 1, tanh also generates values either -1 or +1 . – Saandeep Sreerambatla Mar 22 '21 at 07:40
  • 1
    tanh can also produce values between -1 and +1 @SaandeepSreerambatla – malocho Mar 22 '21 at 15:27

0 Answers0