Skip to content

docs: fix swapped xreg_mode descriptions in forecast_with_covariates#376

Merged
siriuz42 merged 1 commit intogoogle-research:masterfrom
yasumorishima:fix/xreg-mode-docstring
Mar 19, 2026
Merged

docs: fix swapped xreg_mode descriptions in forecast_with_covariates#376
siriuz42 merged 1 commit intogoogle-research:masterfrom
yasumorishima:fix/xreg-mode-docstring

Conversation

@yasumorishima
Copy link
Copy Markdown
Contributor

Summary

Fix incorrect docstring for xreg_mode parameter in forecast_with_covariates.

The descriptions for "xreg + timesfm" and "timesfm + xreg" modes were swapped relative to the actual implementation:

  • "timesfm + xreg" forecasts via TimesFM first, then fits a model on the residuals (L267, L321)
  • "xreg + timesfm" fits a model on the targets directly (L270)

The docstring had these descriptions reversed.

Fixes #275

…docstring

The docstring had the descriptions for "xreg + timesfm" and
"timesfm + xreg" modes swapped relative to the implementation.

Fixes google-research#275
@siriuz42
Copy link
Copy Markdown
Collaborator

Thanks for the fix, @yasumorishima !

@siriuz42 siriuz42 merged commit ed29ec5 into google-research:master Mar 19, 2026
2 checks passed
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

2 participants