Skip to content

Comments

docs: fix swapped xreg_mode descriptions and covariates typo (#275)#366

Open
aydinomer00 wants to merge 1 commit intogoogle-research:masterfrom
aydinomer00:fix/xreg-docstring-275
Open

docs: fix swapped xreg_mode descriptions and covariates typo (#275)#366
aydinomer00 wants to merge 1 commit intogoogle-research:masterfrom
aydinomer00:fix/xreg-docstring-275

Conversation

@aydinomer00
Copy link

The docstring for forecast_with_covariates() had the descriptions for the two xreg_mode values swapped. The implementation is correct, only the docstring was wrong.

Before:
'xreg + timesfm' fits a model on the residuals of the TimesFM forecast.
'timesfm + xreg' fits a model on the targets then forecasts residuals.

After (matching the actual implementation):
'xreg + timesfm' fits XReg on targets, then TimesFM forecasts residuals.
'timesfm + xreg' runs TimesFM first, then fits XReg on residuals.

Also fix typo: 'covaraites' -> 'covariates' in error message (L288).

Closes #275

…research#275)

The docstring for forecast_with_covariates() had the descriptions for
the two xreg_mode values swapped. The implementation is correct, only
the docstring was wrong.

Before:
  'xreg + timesfm' fits a model on the residuals of the TimesFM forecast.
  'timesfm + xreg' fits a model on the targets then forecasts residuals.

After (matching the actual implementation):
  'xreg + timesfm' fits XReg on targets, then TimesFM forecasts residuals.
  'timesfm + xreg' runs TimesFM first, then fits XReg on residuals.

Also fix typo: 'covaraites' -> 'covariates' in error message (L288).

Closes google-research#275
@google-cla
Copy link

google-cla bot commented Feb 20, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

Error in the docstring about xreg+timesfm mode

1 participant