pankajkarman / bias_correction

python library for bias correction
MIT License
30 stars 8 forks source link

continuous integration and testing #10

Open aaronspring opened 3 years ago

aaronspring commented 3 years ago

great package. I am wrapping it in https://github.com/pangeo-data/climpred/blob/355f849d19838085705c89d7b912b0e2fae89f07/climpred/bias_removal.py#L492 and it will help us bias correcting precip forecasts.

Is there a way to test bias_correction (in a continuous integration sense)?

aaronspring commented 3 years ago

@PauRiv

pankajkarman commented 3 years ago

I have been thinking about implementing some test cases to ensure the robustness of the package. However, I am not sure about how to do it. May be take data from papers already using or proposing the methods implemented here.

aaronspring commented 3 years ago

couldnt we create a normal distribution for observations, add some skew or mean shift to get observations and then test that after bias reduction the method='normal_mapping/basic_quantile/modified_quantile' bias-reduced forecasts are on a straight line with observations?

no clue what to do with gamma_mapping

pankajkarman commented 3 years ago

yeah. That's good one. We have to think over the ways to test gamma mapping.