22.02.2024 Views

Daniel Voigt Godoy - Deep Learning with PyTorch Step-by-Step A Beginner’s Guide-leanpub

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

So, here’s what we arrived at:

Equation 3.7 - Regression, logits, and log odds ratios

Let’s work this equation out a bit, inverting, rearranging, and simplifying some

terms to isolate p:

Equation 3.8 - From logits (z) to probabilities (p)

Does it look familiar? That’s a sigmoid function! It is the inverse of the log odds

ratio.

Equation 3.9 - Sigmoid function

216 | Chapter 3: A Simple Classification Problem

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!