Skip to content

Conversation

@prashantpandeygit
Copy link
Contributor

Pull Request

Description

added a new endpoint as source/region/forecast/vs-actual that can compare forecasted and actual power generated values side by side, calculates error metrics (error, absolute error, percent error), also adds stats with MAE,ME,RMSE, min/max error, if include_summary=true is given in the endpoint, done by new class ForecastActualComparison in endpoint_types.py

does not affect any data processing as endpoint results are not stored, they are only returned (read only endpoint)

How Has This Been Tested?

tested with dummy backend with api testing, output is attached below
Screenshot 2026-01-01 210354

and if include_summary=true , at the end of the response summary is returned as attached below
Screenshot 2026-01-01 213717

If your changes affect data processing, have you plotted any changes? i.e. have you done a quick sanity check?

  • Yes

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

@prashantpandeygit prashantpandeygit marked this pull request as draft January 1, 2026 18:35
@prashantpandeygit prashantpandeygit marked this pull request as ready for review January 1, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant