-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Time Series Bug Fixes and Error Handling #1668
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!
forecaster.fit(y_train, X_train, **fit_params) | ||
except ValueError as error: | ||
## Currently only catching ValueError. Can catch more later if needed. | ||
logging.error(error) |
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.
Perhaps we could switch the order around. That's how we do it in other places (first the message, then the exception)
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.
Thank you. I have update it.
data.name = "Time Series" | ||
## Make a local copy so as not to perfrom inplace operation on the | ||
## original dataset | ||
data_ = data.copy(deep=True) |
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.
copy()
without deep
should suffice (unless it's there for a specific reason)
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.
Just a catch all. Should be the same as without deep since we are passing just a dataframe. Do you see any potential issues with including it?
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.
Updated anyway now...
Related Issuse or bug
#1665
#1666
Fixes: #[issue number that will be closed through this PR]
Closes #1665
Closes #1666
Describe the changes you've made
Type of change
How Has This Been Tested?
Unit tests pass
Checklist: