Created
January 24, 2018 17:53
-
-
Save santi-pdp/d0e9002afe74db04aa5bbff6d076e8fe to your computer and use it in GitHub Desktop.
Toy example in pytorch for binary classification
BCEWithLogitsLoss()
expects logits as inputs and not probabilities, so you shouldnt doy = self.out_act(a3)
But he's using BCELoss not BCEWithLogitsLoss
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BCEWithLogitsLoss()
expects logits as inputs and not probabilities, so you shouldnt doy = self.out_act(a3)