HindcastEnsemble.remove_bias() experimental for NWP leads
See original GitHub issueDescribe the bug
cross_validate=True
doesnt work at all, if non-annual leadsunsure about the behaviour in general for non-annual leads- likely some completely different approach to bias reduction like smoothing needs to be implemented
became apparent in #603
Code Sample
with climpred.set_options(seasonality="dayofyear"):
dayofyear_seasonality = hindcast.remove_bias(
alignment=alignment, cross_validate=cross_validate
)
with climpred.set_options(seasonality="weekofyear"):
weekofyear_seasonality = hindcast.remove_bias(
alignment=alignment, cross_validate=cross_validate
)
assert not weekofyear_seasonality.get_initialized().identical(
dayofyear_seasonality.get_initialized()
Expected behavior
- reduce bias with bias only from
seasonality
, e.g.initialized.init.dt.dayofyear
orinitialized.init.dt.month
- enable
cross_validate=True
: dont bias reduce initialization with that years bias
How to approach
- Write down how bias reduction is supposed to work
- Implement code
Easier to implement once #575 is merged: bias is calculated in time but named init
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is some code based on Riley’s and updated by Abby. My feeling is it’s not the latest version … https://github.com/judithberner/climpred_CESM1_S2S/blob/main/0.03_generate_member_anomalies_S2S.ipynb @abjaye
Closed by #645