openclimatefix / skillful_nowcasting

Implementation of DeepMind's Deep Generative Model of Radar (DGMR) https://arxiv.org/abs/2104.00954
MIT License
215 stars 59 forks source link

Add test #37

Closed peterdudfield closed 2 years ago

peterdudfield commented 2 years ago

Pull Request

Description

add some small tests on the loss, thought it might inspire other people to write tests

How Has This Been Tested?

Ran tests locally CI runs tests

Checklist:

codecov-commenter commented 2 years ago

Codecov Report

Merging #37 (2575b9c) into main (5447341) will increase coverage by 3.33%. The diff coverage is n/a.

:exclamation: Current head 2575b9c differs from pull request most recent head 76b9c29. Consider uploading reports for the commit 76b9c29 to get more accurate results

@@            Coverage Diff             @@
##             main      #37      +/-   ##
==========================================
+ Coverage   68.77%   72.10%   +3.33%     
==========================================
  Files          12       12              
  Lines         839      839              
==========================================
+ Hits          577      605      +28     
+ Misses        262      234      -28     
Impacted Files Coverage Δ
dgmr/losses.py 38.92% <0.00%> (+16.76%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more