TECHNOLOGY

Moirai forecast outputs: distribution parameters and sampled trajectories are different artifacts

In this article
THE QUICK TAKE

The original Moirai module returns a distribution object; its forecasting wrapper turns that object into sampled trajectories.

Identify the module and wrapper separately

Original Moirai exposes a probabilistic module beneath a forecasting wrapper. The module implementation transforms representations into distribution parameters and returns a predictive distribution object. A caller porting only the network must therefore establish what representation its consumer expects. Distribution parameters, a sample trajectory and a point forecast are different artifacts even when each can eventually be represented as an array.

Preserve the configured distribution family

The module carries a distribution-output configuration, and the mixture implementation defines how configured mixture components form a probability distribution. Do not interpret projected channels as arbitrary forecast quantiles or assume every generation uses the same head. A compatible tensor width is insufficient evidence of a compatible distribution parameterization. Preserve the checkpoint’s distribution configuration and the transformations that constrain its parameters.

Follow scaling through the probabilistic output

The module computes location and scale using observed context while excluding prediction positions. These values participate in constructing the distribution in the original numerical unit. A port that samples normalized outputs but omits inverse scaling changes the application forecast. Keep scaling associated with the correct sample and variate when processing packed inputs. The numeric-scaling guide offers a contrasting implementation without implying identical formulas.

Inspect sampling in the forecasting wrapper

The Moirai forecasting wrapper samples from the returned distribution and formats trajectories for the forecasting interface. Sample count and random-state control affect empirical summaries made from those trajectories. Computing a sample quantile is different from reading a directly trained quantile channel. A downstream dashboard should state which operation produced its displayed interval rather than calling every uncertainty array a native quantile prediction.

Validate statistical adapters before comparing accuracy

Use a known configured distribution to check parameter constraints, scaling, sample axes and downstream summaries. The Chronos output-contract guide supplies related consumer checks. Separate random sampling variation from a changed network output, and preserve the exact family and wrapper revision. A migration succeeds when it preserves the probabilistic object and its intended summary, not merely when the same number of future coordinates appears on a chart.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles