Skip to content

Docs/examples migrate to 2p5#448

Open
kr3shna wants to merge 2 commits into
google-research:masterfrom
kr3shna:docs/examples-migrate-to-2p5
Open

Docs/examples migrate to 2p5#448
kr3shna wants to merge 2 commits into
google-research:masterfrom
kr3shna:docs/examples-migrate-to-2p5

Conversation

@kr3shna

@kr3shna kr3shna commented Jun 19, 2026

Copy link
Copy Markdown

Summary

Migrate remaining TimesFM 2.5 forecasting examples from the removed v1 API (TimesFmHparams / TimesFmCheckpoint / TimesFm) to the current API (from_pretrained + ForecastConfig + forecast()).

  • detect_anomalies.py — load TimesFM 2.5 and forecast with quantile prediction intervals
  • generate_animation_data.py — same API migration; fix quantile column mapping for 2.5 ([mean, q10, …, q90]q10 at index 1, not 0)
  • global-temperature/README.md — document the working 2.5 API; remove outdated v1 / safetensors guidance
  • generate_html.py — footer updated to TimesFM 2.5
  • Regenerated committed artifacts (animation_data.json, interactive_forecast.html, anomaly detection outputs)

Builds on the prior global-temperature run_forecast.py migration to the 2.5 API.

Related

Test plan

  • py_compile on migrated scripts
  • pytest tests/ --ignore=tests/test_model_loading.py (58 passed)
  • detect_anomalies.py — exits 0; 1 context CRITICAL (2023-09), forecast PI anomalies detected
  • generate_animation_data.py — 25/25 steps; final step mean 1.235°C
  • generate_html.py — self-contained HTML generated
  • Animation step 25 point forecasts match run_forecast.py output
  • Quantile ordering validated (q10 ≤ q20 ≤ q80 ≤ q90); HTML footer shows TimesFM 2.5

kr3shna added 2 commits June 19, 2026 13:50
Add root CONTRIBUTING.md and development_setup.md, fix AGENTS.md to point
at the current test suite, declare dev optional dependencies, and run
tests in CI alongside the existing package build.
Replace removed v1 API usage with from_pretrained + ForecastConfig,
fix 2.5 quantile column mapping in animation output, and refresh
committed example artifacts.
Closes google-research#423
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.

Two fixes were needed in the example script

1 participant