Skip to content

Commit

Permalink
Fix component plot with logistic floor
Browse files Browse the repository at this point in the history
  • Loading branch information
bletham committed Oct 11, 2017
1 parent a44b209 commit a43cfe8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: prophet
Title: Automatic Forecasting Procedure
Version: 0.2
Version: 0.2.0.9000
Date: 2017-09-02
Authors@R: c(
person("Sean", "Taylor", email = "[email protected]", role = c("cre", "aut")),
Expand Down
2 changes: 1 addition & 1 deletion R/R/prophet.R
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ plot_forecast_component <- function(
#'
#' @keywords internal
seasonality_plot_df <- function(m, ds) {
df_list <- list(ds = ds, cap = 1)
df_list <- list(ds = ds, cap = 1, floor = 0)
for (name in names(m$extra_regressors)) {
df_list[[name]] <- 0
}
Expand Down
2 changes: 1 addition & 1 deletion python/fbprophet/forecaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ def seasonality_plot_df(self, ds):
-------
A dataframe with seasonal components on ds.
"""
df_dict = {'ds': ds, 'cap': 1.}
df_dict = {'ds': ds, 'cap': 1., 'floor': 0.}
for name in self.extra_regressors:
df_dict[name] = 0.
df = pd.DataFrame(df_dict)
Expand Down

0 comments on commit a43cfe8

Please sign in to comment.