Skip to content

WIP: add logistic growth cap and floor for fbprophet#1868

Closed
niekvanderlaan wants to merge 1 commit intosktime:mainfrom
niekvanderlaan:main
Closed

WIP: add logistic growth cap and floor for fbprophet#1868
niekvanderlaan wants to merge 1 commit intosktime:mainfrom
niekvanderlaan:main

Conversation

@niekvanderlaan
Copy link
Copy Markdown

Reference Issues/PRs

Fixes #1079

What does this implement/fix? Explain your changes.

Adds the possibility to define the required "cap" and "floor" parameters for Prophet when its growth is set to logistic.

What should a reviewer concentrate their feedback on?

Whether the proposed changes are the correct way of accepting the cap and floor parameters.

Additionally, the only check in place is a ValueError is currently raised when "cap" is not specified ("floor" is not required, as it defaults to 0). I believe Prophet will handle all other input errors, but it might be good to test certain wrong inputs.

Any other comments?

This fix is blocked by another uncovered bug in the convert_to method that is used in the BaseForecaster, that leads to the output as an empty DataFrame. Will open another issue for this

For all contributions
  • I've added myself to the list of contributors.
  • Optionally, I've updated sktime's CODEOWNERS to receive notifications about future changes to these files.
  • I've added unit tests and made sure they pass locally.

@fkiraly
Copy link
Copy Markdown
Collaborator

fkiraly commented Jan 12, 2022

(failing with code quality errors, kindly resolve)

k1m190r added a commit to k1m190r/sktime that referenced this pull request May 6, 2022
k1m190r added a commit to k1m190r/sktime that referenced this pull request May 6, 2022
@fkiraly
Copy link
Copy Markdown
Collaborator

fkiraly commented May 23, 2022

Completed in #2609 and resolved by merging.

@fkiraly fkiraly closed this May 23, 2022
fkiraly added a commit that referenced this pull request Jun 11, 2022
@niekvanderlaan contributed a fix in #1868 which remained incomplete, but got eventually completed by @k1m190r and merged.

Most work was already done by @niekvanderlaan, except linting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Prophet with logistic growth does not work

3 participants