New To PyMC3 | Logistic Regression - Bug

Your code seems wrong. You are specifying yhat but not using it in the pm.Bernoulli likelihood. Have you tried pm.Bernoulli("y", p=yhat, observed=y)?