Training and Evaluation metrics¤
CustomMSELoss
¤
Bases: Module
Custom MSE loss for PDEs.
MSE but summed over time and fields, then averaged over space and batch.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
reduction |
str
|
Reduction method. Defaults to "mean". |
'mean'
|
Source code in pdearena/modules/loss.py
PearsonCorrelationScore
¤
Bases: Module
Pearson Correlation Score for PDEs.
Source code in pdearena/modules/loss.py
ScaledLpLoss
¤
Bases: Module
Scaled Lp loss for PDEs.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
p |
int
|
p in Lp norm. Defaults to 2. |
2
|
reduction |
str
|
Reduction method. Defaults to "mean". |
'mean'
|