openclimatefix / PVNet

PVnet main repo
MIT License
15 stars 3 forks source link

Add PVnet weighted loss #165

Closed jacobbieker closed 3 months ago

jacobbieker commented 3 months ago

Pull Request

Description

Adds weighted loss for quantile loss to help with longer forecast horizons, and ensuring the model focuses on shorter timescales as well.

Fixes #153

How Has This Been Tested?

Unit tests

Checklist:

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 61.43%. Comparing base (fe5fd2f) to head (1d5a859). Report is 1 commits behind head on main.

Files Patch % Lines
pvnet/models/base_model.py 33.33% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #165 +/- ## ========================================== - Coverage 61.47% 61.43% -0.05% ========================================== Files 28 28 Lines 1786 1789 +3 ========================================== + Hits 1098 1099 +1 - Misses 688 690 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.