22.02.2024 Views

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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!