Conversation
…different classes. Moved the test to project the seasonal signal up to the parent Decomposer class. Moved the testing for the seasonal projection to the decomposer test module.
… to move that up to the base Decomposer class.
* Updated get_trend_df() to work out of sample. * Fixed transform() to work with in sample, but not spanning the sample. * Fixed inverse_transform to work with smaller than sample, in sample data.
…ple. Also updated test for transform to return same if y is None and moved that to parent class.
…etter reflect what's going on. Docstring changes.
…e seasonal sample to match the STLDecomposer.
…s and regression pipelines.
| self.gap, | ||
| ) | ||
|
|
||
| # Properly fill in the dates in the gap |
There was a problem hiding this comment.
This was a pre-existing bug where we fill in the gap between the training and testing data with the last row of training data, but that means creating an irregularly spaced time index.
| X_schema = X.ww.schema | ||
| y_schema = y.ww.schema | ||
| X = X.set_index(X[self.time_index]) | ||
| y = y.set_axis(X[self.time_index]) | ||
| X.ww.init(schema=X_schema) | ||
| y.ww.init(schema=y_schema) |
There was a problem hiding this comment.
Feels weird to be saving the time index in the data's indices when we're trying to drop it, but the decomposer needs the time index data to decompose successfully. If anyone has suggestions on a better or cleaner way to get around this I am very open to it.
There was a problem hiding this comment.
Can we drop after fit or transform in the decomposer then? The problem is non-time-series native estimators will fail with a datetime column. Maybe we can amend the logic here to save the time index only when having the decomposer in the pipeline and then dropping the time index later?
Codecov Report
@@ Coverage Diff @@
## main #3781 +/- ##
=======================================
- Coverage 99.7% 99.7% -0.0%
=======================================
Files 343 343
Lines 35680 35754 +74
=======================================
+ Hits 35544 35617 +73
- Misses 136 137 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
| X_schema = X.ww.schema | ||
| y_schema = y.ww.schema | ||
| X = X.set_index(X[self.time_index]) | ||
| y = y.set_axis(X[self.time_index]) | ||
| X.ww.init(schema=X_schema) | ||
| y.ww.init(schema=y_schema) |
There was a problem hiding this comment.
Can we drop after fit or transform in the decomposer then? The problem is non-time-series native estimators will fail with a datetime column. Maybe we can amend the logic here to save the time index only when having the decomposer in the pipeline and then dropping the time index later?
|
can we also add |
jeremyliweishih
left a comment
There was a problem hiding this comment.
nvm - we're good but think we should add to test_automl_supports_time_series_regression still!
|
Closing in favor of #3785 |
Includes some other small code changes to allow integration to be successful!