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

Switch from using prophet-prebuilt to prophet #4045

Merged
merged 28 commits into from
Mar 17, 2023
Merged

Switch from using prophet-prebuilt to prophet #4045

merged 28 commits into from
Mar 17, 2023

Conversation

eccabay
Copy link
Contributor

@eccabay eccabay commented Mar 2, 2023

Closes #3908

@codecov
Copy link

codecov bot commented Mar 2, 2023

Codecov Report

Merging #4045 (0a0b8a6) into main (a40c7f1) will decrease coverage by 0.0%.
The diff coverage is 66.7%.

❗ Current head 0a0b8a6 differs from pull request most recent head 3d23fcb. Consider uploading reports for the commit 3d23fcb to get more accurate results

@@           Coverage Diff           @@
##            main   #4045     +/-   ##
=======================================
- Coverage   99.7%   99.7%   -0.0%     
=======================================
  Files        349     349             
  Lines      37546   37548      +2     
=======================================
+ Hits       37428   37429      +1     
- Misses       118     119      +1     
Impacted Files Coverage Δ
...ponents/estimators/regressors/xgboost_regressor.py 100.0% <ø> (ø)
evalml/tests/automl_tests/test_automl.py 99.6% <ø> (ø)
evalml/tests/component_tests/test_utils.py 99.3% <ø> (ø)
.../tests/pipeline_tests/test_time_series_pipeline.py 100.0% <ø> (ø)
evalml/tests/pipeline_tests/test_pipeline_utils.py 99.6% <50.0%> (-0.2%) ⬇️
evalml/tests/pipeline_tests/test_pipelines.py 99.9% <100.0%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Comment on lines 858 to 864
is_using_windows,
):
if is_using_windows:
pytest.xfail(
"Pipeline code generation is not expected to work on Windows machines",
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eccabay eccabay marked this pull request as ready for review March 3, 2023 22:46
@@ -116,7 +116,7 @@ def get_prediction_intervals(
y: Optional[pd.Series] = None,
coverage: List[float] = None,
) -> Dict[str, pd.Series]:
"""Find the prediction intervals using the fitted ProphetRegressor.
"""Find the prediction intervals using the fitted XGBoostRegressor.
Copy link
Contributor

Choose a reason for hiding this comment

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

@angela97lin would be proud

Copy link
Contributor

@cp2boston cp2boston left a comment

Choose a reason for hiding this comment

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

When testing in tempojobs, I had to do a small tweak for M1s (I believe it's limited to them). All tests passed

python -m pip install .[test]
python -m pip install .[prophet]
pip freeze
- if: ${{ matrix.command != 'git-test-prophet' }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For linux workflows, we also run git-test-automl with prophet installed. I decided not to do that for windows because of known slowness when using the pip installation of prophet on windows - the tests were taking over an hour

pytest evalml/tests/component_tests/test_prophet_regressor.py evalml/tests/component_tests/test_components.py evalml/tests/component_tests/test_utils.py evalml/tests/pipeline_tests/ evalml/tests/utils_tests/ -n 2 --durations 0 --timeout $(TIMEOUT) --cov=evalml --cov-config=./pyproject.toml --junitxml=test-reports/git-test-prophet-junit.xml
pytest evalml/tests/component_tests/test_prophet_regressor.py evalml/tests/component_tests/test_components.py evalml/tests/component_tests/test_utils.py evalml/tests/pipeline_tests/test_pipelines.py -n 2 --durations 0 --timeout $(TIMEOUT) --cov=evalml --cov-config=./pyproject.toml --junitxml=test-reports/git-test-prophet-junit.xml
Copy link
Contributor Author

@eccabay eccabay Mar 14, 2023

Choose a reason for hiding this comment

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

Moved these tests from git-test-prophet to git-test-other since they don't actually need prophet installed in order to run. This sped up the windows prophet test times from 45 minutes to 21, and only increased the windows other test times from 13 minutes to 16.

@chukarsten chukarsten enabled auto-merge (squash) March 17, 2023 03:18
@chukarsten chukarsten merged commit 1ce658d into main Mar 17, 2023
@chukarsten chukarsten deleted the 3908_prophet branch March 17, 2023 03:19
@chukarsten chukarsten mentioned this pull request Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate upgrading prophet version
3 participants