Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/198808xc/Pangu-Weather
/ functions
Functions
22 in github.com/198808xc/Pangu-Weather
⨍
Functions
22
◇
Types & classes
9
↓ 1 callers
Method
_construct_index
This function construct the position index to reuse symmetrical parameters of the position bias
pseudocode.py:490
Function
Inference
Inference code, describing the algorithm of inference using models with different lead times. PanguModel24, PanguModel6, PanguModel3 and PanguMode
pseudocode.py:58
Function
PerlinNoise
Generate random Perlin noise: we follow https://github.com/pvigier/perlin-numpy/ to calculate the perlin noise.
pseudocode.py:585
Function
Train
Training code
pseudocode.py:151
Method
__init__
(self)
pseudocode.py:187
Method
__init__
Patch embedding operation
pseudocode.py:243
Method
__init__
Patch recovery operation
pseudocode.py:275
Method
__init__
Down-sampling operation
pseudocode.py:297
Method
__init__
Up-sampling operation
pseudocode.py:327
Method
__init__
Basic layer of our network, contains 2 or 6 blocks
pseudocode.py:364
Method
__init__
3D transformer block with Earth-Specific bias and window attention, see https://github.com/microsoft/Swin-Transformer for the official imp
pseudocode.py:383
Method
__init__
3D window attention with the Earth-Specific bias, see https://github.com/microsoft/Swin-Transformer for the official implementation of 2D
pseudocode.py:456
Method
__init__
MLP layers, same as most vision transformer architectures.
pseudocode.py:570
Method
forward
Backbone architecture
pseudocode.py:207
Method
forward
(self, input, input_surface)
pseudocode.py:252
Method
forward
(self, x, Z, H, W)
pseudocode.py:281
Method
forward
(self, x, Z, H, W)
pseudocode.py:303
Method
forward
(self, x)
pseudocode.py:338
Method
forward
(self, x, Z, H, W)
pseudocode.py:373
Method
forward
(self, x, Z, H, W, roll)
pseudocode.py:399
Method
forward
(self, x, mask)
pseudocode.py:524
Method
forward
(self, x)
pseudocode.py:577