You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On line 156 in tobit.py.
The intercept is improperly extracted from the result of the optimisation, it is saved as: result.x[1]
which the first of the coefficients, not the intercept.
It seems it should be: result.x[0]
The index should be 0, not 1.
if self.fit_intercept:
self.intercept_ = result.x[1] <- THIS LINE HERE
self.coef_ = result.x[1:-1]
else:
self.coef_ = result.x[:-1]
self.intercept_ = 0
Hope this helps.
The text was updated successfully, but these errors were encountered:
Intercept extraction index in wrong
On line 156 in tobit.py.
The intercept is improperly extracted from the result of the optimisation, it is saved as:
result.x[1]
which the first of the coefficients, not the intercept.
It seems it should be:
result.x[0]
The index should be 0, not 1.
Hope this helps.
The text was updated successfully, but these errors were encountered: