Fix feature importance for time series baseline#3285
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3285 +/- ##
=======================================
+ Coverage 99.8% 99.8% +0.1%
=======================================
Files 322 322
Lines 31600 31614 +14
=======================================
+ Hits 31510 31524 +14
Misses 90 90
Continue to review full report at Codecov.
|
| "Time Series Baseline Estimator is meant to be used in a pipeline with " | ||
| "a Time Series Featurizer" | ||
| ) | ||
| self._num_features = X.shape[1] |
There was a problem hiding this comment.
We typically don't set fields like this in predict but since the feature_name is not used until predict, it seemed better to keep this logic together.
bchen1116
left a comment
There was a problem hiding this comment.
LGTM! Left one comment but nothing blocking.
| "metadata": {}, | ||
| "source": [ | ||
| "The pipeline found by AutoMLSearch has a 268% improvement over the naive forecast!" | ||
| "The pipeline found by AutoMLSearch has a 31% improvement over the naive forecast!" |
There was a problem hiding this comment.
Personally, I'm hesitant on putting numeric values for these since if we change/add components or change the way things are calculated, these numbers will likely change. Not blocking, but something to keep in mind!
We include the Also with the baseline pipeline, predictions are based entirely off of the delayed feature, so we'd have to set that to 1 I believe. |
a589833 to
4a0e79c
Compare
So If I'm understanding correctly: The target_rolling_mean feature shows up in the baseline pipeline importances because its added via the TimeSeriesFetureizer even though it's not actually included in the model and should always have zero importance? |
|
@tamargrey Exactly. The estimator technically "sees" the rolling mean feature, but it doesn't use it, so it gets an importance of 0. |

Pull Request Description
Fixes #3284 , Fixes #3282
After creating the pull request: in order to pass the release_notes_updated check you will need to update the "Future Release" section of
docs/source/release_notes.rstto include this pull request by adding :pr:123.