You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I'm following along with the videos for the classification notebook, and we get to the part where we enable Binary Crossentropy. Now everything worked fine, but I noticed something. I didn't need to define the sigmoid activation on my output layer when using the default Binary_Crossentropy() loss function.
I got 99.9% test accuracy but my decision boundary plot looked like this.
So, I went back and used a sigmoid activation on the output layer. This required me to set from_logits=true for the binary crossentropy loss, and I still got perfect accuracy, but the decision boundary looked significantly more firm. The code and image is below.
So what is going ne here? I'm using tf 2.9.0, so is there something maybe going on there? Or is something going on with the plotting function. How should I go about exploring this difference?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So, I'm following along with the videos for the classification notebook, and we get to the part where we enable Binary Crossentropy. Now everything worked fine, but I noticed something. I didn't need to define the sigmoid activation on my output layer when using the default Binary_Crossentropy() loss function.
I got 99.9% test accuracy but my decision boundary plot looked like this.
So, I went back and used a sigmoid activation on the output layer. This required me to set
from_logits=true
for the binary crossentropy loss, and I still got perfect accuracy, but the decision boundary looked significantly more firm. The code and image is below.So what is going ne here? I'm using tf 2.9.0, so is there something maybe going on there? Or is something going on with the plotting function. How should I go about exploring this difference?
Beta Was this translation helpful? Give feedback.
All reactions