Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add smooth blocks options #140

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

add smooth blocks options #140

wants to merge 6 commits into from

Conversation

peterdudfield
Copy link
Contributor

@peterdudfield peterdudfield commented Nov 26, 2024

Pull Request

Description

Add option for smoothing foreast in confi

How Has This Been Tested?

CI tests

  • 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

@peterdudfield peterdudfield marked this pull request as ready for review November 26, 2024 15:39
@@ -189,6 +192,15 @@ def predict(self, site_id: str, timestamp: dt.datetime):
values_df["forecast_power_kw"].rolling(4, min_periods=1).mean().astype(int)
)

if self.smooth_blocks:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed there is some smoothing that happens just above this using 1 hour windows, does this mean this is this smoothing is applied on top of that one?

Feels like it would be useful have a unit test with non random forecast values to make sure this is working as expected

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.

2 participants