Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions neural_lam/models/base_graph_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ class BaseGraphModel(ARModel):
"""

def __init__(self, args, config: NeuralLAMConfig, datastore: BaseDatastore):
"""
Initializes the BaseGraphModel for graph-based weather forecasting.

This constructor loads the graph structure, registers static features as buffers,
initializes MLP embedders for grid and mesh nodes, and sets up the
Encoder-Processor-Decoder GNN architecture.

Args:
args (Namespace): Command-line arguments containing hyperparameters like
hidden_dim and hidden_layers.
config (NeuralLAMConfig): Configuration object containing training and
model settings.
datastore (BaseDatastore): Datastore instance to handle data loading
and graph paths.
"""
super().__init__(args, config=config, datastore=datastore)

# Load graph with static features
Expand Down