Closed arainboldt closed 4 years ago
Hi!
You're using pf.LogisticRegression
, right? Looks like I used the 2nd class as the pivot for the additive logistic transform instead of the 1st class, which was dumb, because like you found out, then all the coefficients are backwards haha!
Fixed it in https://github.com/brendanhasz/probflow/commit/2be4ef88ad7a4002dd39807d410594a995ccd2db - the coefficients should be of the expected sign now.
Thanks for pointing out the problem and lemme know if that fixes it or not!
Brendan
Thanks for the quick response. Right on. I'll update and let you know!
Hi,
I'm comparing the Logistic Regression application with TFP.glm and PYMC. I'm consistently getting inverted signs on the coefficients for the regressors from probflow vs TFP.glm and PYMC. Below is the summary from the pymc model with the appended coefficients from tfp and probflow
`
`
You'll see that although the tfp.glm differs in magnitude from pymc, generally the signs are the same, while the probflow coefficients generally have the opposite sign. This will create issues when trying to interpret probflow models. Any ideas what might be the cause of this?