Logistic regression: why f(x)=g(z)?

Hello @Neeraj_Badlani

Welcome to the community.

We discuss the same point here and here. please take a look.