Replies: 3 comments 1 reply
-
🧠 Tanh Activation – Exercise ClarificationI’m not doing anything wrong 🙂
Important Notes
|
Beta Was this translation helpful? Give feedback.
-
|
@jonorl i used tanh() as activation function(not Relu) and got accuracy=1 with 180 epoch, but i also got acc=1 with relu and other activation functions, so i think activation function is not matter so you didnt do anything wrong, BUT you can't just easely replace sigmoid with tanh, becouse if you are using tanh your labels will be 1 or -1, but in our dataset there is 0 and 1. P.S. |
Beta Was this translation helpful? Give feedback.
-
|
You're not doing anything wrong, it's just that different activation functions serve different purposes.
This does not mean that using The I think the exercise just served the purpose of getting familiar with some other common activation functions that you'll run into when you get deeper into deep learning. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I managed to sucessfully do the excercises for the 2nd module, but under the excercises, number 6 asks to replicate the Tanh (hyperbolic tangent) activation function in pure PyTorch. I did it in a similar way to Sigmoid() and ReLU() but I don't understand if the excercise is referncing Tanh because we were supposed to use it in the previous moons excercise.
I tried using Tanh() replacing nn.ReLU() on my moon module with nn.tanh() as well as replacing torch.sigmoid() with torch.tanh() when transforming logits to predictions but in both cases the model needed more epochs to get to the target 96% accuracy. Am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions