Forecasting#

This gallery focuses on forecast construction, forecast-reading, and forecast-interpretation workflows in GeoPrior.

Unlike the API reference, the pages collected here are organized around the practical question:

How should a user build, inspect, compare, and evaluate forecast outputs once Stage-4 inference has produced raw model predictions?

The emphasis is therefore on understanding forecast structure and forecast usefulness. These examples show how GeoPrior turns raw model outputs into readable forecast artifacts such as:

  • formatted evaluation and future forecast tables,

  • forecast metric summaries,

  • sample-wise forecast trajectories,

  • future quantile maps,

  • holdout-versus-future comparisons,

  • and horizon-by-horizon forecast diagnostics.

In other words, this gallery is about working with the forecast: not only plotting it, but also understanding where the forecast tables come from and how they should be evaluated.

Module guide#

Module

Main output

Purpose

format_and_forecast.py

Forecast tables

Convert raw model outputs into canonical evaluation and future forecast DataFrames that downstream plotting and evaluation helpers can use directly.

evaluate_forecast.py

Forecast metric summaries

Evaluate an evaluation forecast table using deterministic metrics, interval quality summaries, and optional horizon-wise diagnostics.

plot_forecasts.py

Forecast quick-look view

Plot sample-wise forecast trajectories and compact quick-look comparisons from a long-format forecast table.

plot_future_quantiles_map.py

Future quantile map grid

Plot year-by-year future forecast maps and compare lower, median, and upper forecast scenarios spatially.

plot_holdout_vs_forecast.py

Holdout-versus-future comparison

Compare evaluation-period actual-versus-predicted structure before interpreting future forecast scenarios.

plot_forecast_by_step.py

Horizon-step forecast grid

Plot forecast outputs row-by-row by forecast step to inspect how the spatial or predicted field changes across the horizon.

Reading path#

A useful way to move through this gallery is to follow the logic of a complete forecast workflow:

  1. begin by formatting raw model outputs into forecast tables,

  2. evaluate those tables to establish basic forecast quality,

  3. inspect a compact quick-look of forecast trajectories,

  4. continue to future quantile maps,

  5. compare holdout structure with future projections,

  6. finish with horizon-by-horizon diagnostics.

That is why the examples are grouped by forecast workflow purpose rather than only by plotting function.

Why this separation matters#

This gallery deliberately keeps four concerns distinct:

  • forecast construction,

  • forecast evaluation,

  • forecast visualization,

  • forecast interpretation.

That separation makes the workflow easier to understand. It also helps users distinguish between:

  • utilities that build forecast tables from raw model outputs,

  • helpers that score those forecast tables,

  • plotting functions that turn those tables into readable views,

  • and lesson pages that explain what those artifacts actually mean.

Notes#

  • These examples are intentionally compact and lesson-oriented.

  • The pages in this section are forecast-first: they may print small summaries or metric tables, but their main purpose is to explain how forecast outputs should be constructed, read, and evaluated.

  • A useful rule of thumb is:

    • forecasting/ explains how forecast outputs are built, read, and evaluated,

    • uncertainty/ explains calibration and reliability,

    • diagnostics/ explains workflow and training diagnostics,

    • tables_and_summaries/ builds reusable analysis artifacts.

  • A strong practical reading sequence is:

    • first format the forecast tables,

    • then evaluate the forecast quality,

    • then inspect the forecast quickly,

    • then read future quantile maps,

    • then validate against holdout structure,

    • then study horizon-wise behavior in more detail.

Evaluate forecast tables with evaluate_forecast

Evaluate forecast tables with evaluate_forecast

Forecast quick-look with plot_forecasts

Forecast quick-look with plot_forecasts

Forecast by horizon step with plot_forecast_by_step

Forecast by horizon step with plot_forecast_by_step

From raw model outputs to forecast tables with format_and_forecast

From raw model outputs to forecast tables with format_and_forecast

Future quantile maps with forecast_view

Future quantile maps with forecast_view

Holdout versus future forecast with plot_eval_future

Holdout versus future forecast with plot_eval_future