diff --git a/R/R/prophet.R b/R/R/prophet.R index 06d9c7c..c77dbf6 100644 --- a/R/R/prophet.R +++ b/R/R/prophet.R @@ -600,7 +600,7 @@ logistic_growth_init <- function(df) { # Initialize the offset m <- L0 * T / (L0 - L1) # And the rate - k <- L0 / m + k <- (L0 - L1) / T return(c(k, m)) } diff --git a/python/fbprophet/forecaster.py b/python/fbprophet/forecaster.py index 58da58b..c4c550c 100644 --- a/python/fbprophet/forecaster.py +++ b/python/fbprophet/forecaster.py @@ -523,7 +523,7 @@ class Prophet(object): # Initialize the offset m = L0 * T / (L0 - L1) # And the rate - k = L0 / m + k = (L0 - L1) / T return (k, m) # fb-block 7