Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: support forecast_limit_lower_bound and forecast_limit_upper_bou… #1305

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

Merged
merged 29 commits into from
May 7, 2025

Conversation

rey-esp
Copy link
Contributor

@rey-esp rey-esp commented Jan 21, 2025

…nd in ARIMA_PLUS (and ARIMA_PLUS_XREG) models

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

…nd in ARIMA_PLUS (and ARIMA_PLUS_XREG) models
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Jan 21, 2025
…pis/python-bigquery-dataframes into b384509112-forecast-limit-bounds
…pis/python-bigquery-dataframes into b384509112-forecast-limit-bounds
@tswast tswast marked this pull request as ready for review April 2, 2025 20:50
@tswast tswast requested review from a team as code owners April 2, 2025 20:50
@tswast tswast requested a review from shobsi April 2, 2025 20:50
@@ -107,6 +107,8 @@ def test_arima_plus_model_fit_params(time_series_df_default_index, dataset_id):
holiday_region="US",
clean_spikes_and_dips=False,
adjust_step_changes=False,
forecast_limit_upper_bound=2,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if the failure on fit is because total_visits is greater than 2 in the training data? Maybe we need to pick a larger value for this?

Aternatively:

The forecasting limit ensures that forecasts stay within limits.

forecast_limit_lower_bound (float or None, default None):
The lower bound of the forecasting values where the minimum value allowed is 0. When you specify the FORECAST_LIMIT_LOWER_BOUND option, all of the forecast values must be greater than the specified value.
Copy link
Contributor

Choose a reason for hiding this comment

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

we should use the param name being introduced here instead of the uppercase (which is documented in the BQML docs)

@tswast tswast enabled auto-merge (squash) May 7, 2025 20:24
@tswast tswast merged commit b16740e into main May 7, 2025
19 of 24 checks passed
@tswast tswast deleted the b384509112-forecast-limit-bounds branch May 7, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants