-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small bugs in SimpleRegressionResults #2375
Small bugs in SimpleRegressionResults #2375
Comments
Thx for pointing these issues. These classes were inherited from past projects and are actually not used correctly. |
Actually, all these excellent why we should be careful with inheritance and avoid over-designing the code. |
I think I fixed it. Please give me some feedback. |
@Gilles86 I think the best way is to open a PR saying that it fixes this issue. In that way you would hopefully get feedback. |
Indeed. let us jknow if you need help or explanations. |
(1) https://github.com/nistats/nistats/blob/master/nistats/regression.py#L366
predicted
should be a method call instead of an instance variable reference(2) https://github.com/nistats/nistats/blob/master/nistats/regression.py#L392
model
is not defined inSimpleRegressionResults
. It is defined in the parent classLikelihoodModelResults
but the initializer for the parent is never called.The text was updated successfully, but these errors were encountered: