If you're reading Deep Learning Book, feel free to ask questions, discuss the material or share resources.
Below is a video from a book club in San Francisco, ...
P(y=0) = 1 / (1+ez) = 𝛔 (-z)
P(y=1) = ez /(1+ez)=𝛔 (z) (3.33 in the book)
substitute y=0 and y=1 in 6.23 and you will find the values above