-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Multiple Fixes and Residual Analysis Added #1620
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
try: | ||
self.X_test | ||
except AttributeError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine, though in other places we use hasattr
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in all places except the one noted in the comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this exception handling should be inside
self._get_model_name(estimator)
itself. Not sure why time_series module has to do this. What do you think?
Never mind. I have changed it for now so we can close this out....
Co-authored-by: Antoni Baum <antoni.baum@protonmail.com>
@ngupta23 if you are going to go with |
Yes, I changed it in all spots now except try:
model_name = self._get_model_name(estimator)
except AttributeError:
# If the model is saved and loaded afterwards,
# it will not have self._get_model_name
model_name = estimator.__class__.__name__ I think this exception handling should be inside |
@ngupta23 That's a good idea, feel free to put it there! |
I don't think I can. Its a method call, so the calling method will have to check for it - correct? Anyway, I have fixed it in my method now. |
@ngupta23 Right, I'll take a look at that. |
Related Issuse or bug
Fixes: #[issue number that will be closed through this PR]
Describe the changes you've made
mean
all the time)Type of change
Checklist: