[BUG] Fix Prophet with logistic growth #1079#2609
Conversation
…edict_quantiles()`. Re-implemented `_has_predict_quantiles_been_refactored()` due to failing tests. Small changes to `_convert_new_to_old_pred_int()` due to failing tests.
…into alan-turing-institute-main
fkiraly
left a comment
There was a problem hiding this comment.
Looks good to me!
my main blocking change requests would be:
- @aiwalter's comments
- I think we need to do something in case the columns
"cap"and"floor"already exist. An option would be to temporarily rename them to"cap__n"etc wherenis the smallest positive integer that the string isn't already a column name
|
@fkiraly if |
|
Thank you for the corrections gents. I have noticed another [BUG] while implementing this PR. Will open new issue #2621. |
No, I think in no case should values from |
fkiraly
left a comment
There was a problem hiding this comment.
Thanks, looks good!
Three blocking changes:
- optional parameter
growth_capneeds to be indicated as optional in the docstring. Conditionally non-optional parametergrowth_floorshould say it is non-optional ifgrowth="logistic"in the docstring. - I think array-like
growth_capandgrowth_floordo not work? So, docstring should not mention them. - we can't change existing default params without deprecation, but I also think
interval_widthis not used, so I'd leave it or remove it entirely
|
See #2626 on the |
|
Well, docstring needs to make clear that |
Is this ok? |
Not sure - is I would also write "Used only if |
|
@k1m190r, are you still working on this? |
Ok I think this would be it.
|
|
makes sense. I would remove the "conditionally optional" in favour of a clearer formulation, since this does not state what the condition is. Last line, I would change to: To |
|
Done. |
Reference Issues/PRs
Fixes #1079 and #2444
Copy and paste of #1868
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.
Any other comments?
Suggest closing old relevant issues and PRs.
For all contributions