Skip to content
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

Adding time series support to make_pipeline #1566

Merged
merged 7 commits into from Jan 4, 2021

Conversation

freddyaboulton
Copy link
Contributor

Pull Request Description

Fixes #1497


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.rst to include this pull request by adding :pr:123.

@freddyaboulton freddyaboulton changed the title Adding time series support for make_pipeline. Updating tests. Adding time series support for make_pipeline Dec 16, 2020
@freddyaboulton freddyaboulton force-pushed the 1497-make-pipelines-for-timeseries branch from 7e06f6b to 2412677 Compare December 16, 2020 22:27
@freddyaboulton freddyaboulton self-assigned this Dec 16, 2020
@freddyaboulton freddyaboulton added the enhancement An improvement to an existing feature. label Dec 16, 2020
@freddyaboulton freddyaboulton added this to the December 2020 milestone Dec 16, 2020
@freddyaboulton freddyaboulton changed the title Adding time series support for make_pipeline Adding time series support to make_pipeline Dec 16, 2020
@codecov
Copy link

codecov bot commented Dec 16, 2020

Codecov Report

Merging #1566 (77691c7) into main (32f9be2) will increase coverage by 0.1%.
The diff coverage is 100.0%.

Impacted file tree graph

@@            Coverage Diff            @@
##             main    #1566     +/-   ##
=========================================
+ Coverage   100.0%   100.0%   +0.1%     
=========================================
  Files         240      240             
  Lines       18177    18207     +30     
=========================================
+ Hits        18169    18199     +30     
  Misses          8        8             
Impacted Files Coverage Δ
evalml/tests/automl_tests/test_automl.py 100.0% <ø> (ø)
evalml/pipelines/utils.py 100.0% <100.0%> (ø)
evalml/tests/pipeline_tests/test_pipelines.py 100.0% <100.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 32f9be2...77691c7. Read the comment docs.

@freddyaboulton freddyaboulton force-pushed the 1497-make-pipelines-for-timeseries branch from 2c24f04 to 9be2d81 Compare December 17, 2020 20:52
categorical_cols = X.select('category')
if (add_datetime_featurizer or len(categorical_cols.columns) > 0) and estimator_class not in {CatBoostClassifier, CatBoostRegressor}:
if len(categorical_cols.columns) > 0 and estimator_class not in {CatBoostClassifier, CatBoostRegressor}:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DateTimeFeaturizer no longer creates categorical features by default.

Copy link
Contributor

@bchen1116 bchen1116 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Nice tests!

evalml/pipelines/utils.py Show resolved Hide resolved
pipeline_class = MulticlassClassificationPipeline
elif problem_type == ProblemTypes.REGRESSION:
pipeline_class = RegressionPipeline
pipeline_class = _get_pipeline_base_class(problem_type)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@freddyaboulton freddyaboulton force-pushed the 1497-make-pipelines-for-timeseries branch 2 times, most recently from 7788eb9 to 4561ca0 Compare December 21, 2020 15:03
@dsherry dsherry removed this from the December 2020 milestone Jan 4, 2021
@freddyaboulton freddyaboulton force-pushed the 1497-make-pipelines-for-timeseries branch from 4561ca0 to 77691c7 Compare January 4, 2021 17:25
@freddyaboulton freddyaboulton merged commit 635f938 into main Jan 4, 2021
@freddyaboulton freddyaboulton deleted the 1497-make-pipelines-for-timeseries branch January 4, 2021 18:22
@bchen1116 bchen1116 mentioned this pull request Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement to an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update make_pipelines to work for timeseries pipelines
3 participants