climpred.classes.HindcastEnsemble.remove_bias

HindcastEnsemble.remove_bias(alignment, how='mean', cross_validate=True, **metric_kwargs)[source]

Calculate and remove bias from HindcastEnsemble.

Parameters
  • alignment (str) –

    which inits or verification times should be aligned?

    • ’maximize’: maximize the degrees of freedom by slicing hind and verif to a common time frame at each lead.

    • ’same_inits’: slice to a common init frame prior to computing metric. This philosophy follows the thought that each lead should be based on the same set of initializations.

    • ’same_verif’: slice to a common/consistent verification time frame prior to computing metric. This philosophy follows the thought that each lead should be based on the same set of verification dates.

  • how (str or list of str) – what kind of bias removal to perform. Select from [‘mean’]. Defaults to ‘mean’.

  • cross_validate (bool) – Use properly defined mean bias removal function. This excludes the given initialization from the bias calculation. With False, include the given initialization in the calculation, which is much faster and but yields similar skill with a large N of initializations. Defaults to True.

  • metric_kwargs (dict) – kwargs to be passed to bias.

Returns

bias removed HindcastEnsemble.

Return type

HindcastEnsemble