credit.metrics#
Attributes#
Classes#
metrics for rollout_ens_batcher. will output full xarrays of rmse, std etc |
Module Contents#
- class credit.metrics.LatWeightedMetrics(conf, training_mode=True)#
- conf#
- vars#
- w_lat = None#
- w_var = None#
- __call__(pred, y, clim=None, transform=None, forecast_datetime=0)#
- class credit.metrics.LatWeightedMetricsClimatology(conf, climatology=None)#
- conf#
- climatology = None#
- vars#
- acc_vars#
- w_lat = None#
- w_var = None#
- get_climatology(forecast_datetime, variable)#
Extract the climatology for the given forecast datetime and variable.
- __call__(pred, y, extras=None, transform=None, forecast_datetime=None)#
- acc(loss_dict, pred, y, extras, transform, forecast_datetime, w_var, w_lat)#
- rmse(error, w_lat, w_var)#
- mse(error, w_lat, w_var)#
- mae(error, w_lat, w_var)#
- class credit.metrics.LatWeightedMetricsEnsemble(conf, training_mode=True)#
metrics for rollout_ens_batcher. will output full xarrays of rmse, std etc
- conf#
- vars#
- w_lat = None#
- w_var = None#
- __call__(pred, y, clim=None, transform=None, forecast_datetime=0)#
- credit.metrics.logger#