Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Model Architecture

Type of model: ConvGRU — dataset, data module, network, Lightning module, and trainer.

 Past Radar Images
        │
        ▼
    Encoder            halves resolution per block (PixelUnshuffle)
        │
        ▼
  ConvGRU Layers        roll out in latent space, no fed-back frames
        │
        ▼
     Decoder            doubles resolution per block (PixelShuffle)
        │
        ▼
 Future Weather Forecasts
     (1 or many ensemble members)

Implementation: ConvGruModel

ConvGruModel (in src/mlcast/models/convgru.py) is an encoder-decoder architecture. It is not autoregressive at forecast time: instead of generating each forecast frame from the previous predicted frame, the decoder performs the temporal roll-out entirely in latent space, which avoids accumulating prediction error over the forecast.

Custom architectures

Any network can replace cfg.pl_module.network as long as its forward accepts (x, steps, ensemble_size) and returns [batch, steps, out_channels, H, W]. See the custom network interface and the worked example.