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

Introduced post processing #937

Closed
wants to merge 93 commits into from
Closed

Introduced post processing #937

wants to merge 93 commits into from

Conversation

prasankh
Copy link
Member

ODSC-61573

Following schema can be used to set min value for the forecast value

postprocessing:
 enabled: true
 steps:
   set_min_forecast: 0

@prasankh prasankh requested review from codeloop and ahosler August 28, 2024 12:05
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 28, 2024
@@ -81,6 +81,13 @@ def _train_model(self, i, series_id, df, model_kwargs):
)

data = self.preprocess(df, series_id)
cap = data['y'].max() * 1.2
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to have a cap?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, It's mandatory with logistic growth function. Removed logistic growth function for now as it fails during generating local explanations.

if self.spec.postprocessing.enabled:
floor = self.spec.postprocessing.steps.set_min_forecast
else:
floor = data['y'].min() * 0.8
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we leave this to the framework? Why 0,8?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's mandatory with logistic growth function. Removed logistic growth function for now.

@@ -317,6 +317,25 @@ spec:
required: false
default: false

postprocessing:
Copy link
Member

Choose a reason for hiding this comment

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

This is a great way to add it 👍

@prasankh prasankh requested a review from ahosler August 30, 2024 05:59
codeloop
codeloop previously approved these changes Sep 2, 2024
Copy link

github-actions bot commented Oct 8, 2024

⚠️ This PR changed pyproject.toml file. ⚠️

  • PR Creator must update 📃 THIRD_PARTY_LICENSES.txt, if any 📚 library added/removed in pyproject.toml.
  • PR Approver must confirm 📃 THIRD_PARTY_LICENSES.txt updated, if any 📚 library added/removed in pyproject.toml.

@prasankh prasankh closed this Oct 8, 2024
Copy link

github-actions bot commented Oct 8, 2024

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-59.02%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants