Skip to content

[BUG] Prophet with logistic growth does not work #1079

@muzibai

Description

@muzibai

Describe the bug
It is not compatible with the case that the growth parameter of prophet is equal to ‘logistic‘

To Reproduce

from sktime.datasets import load_airline
y = load_airline()
y = y.to_timestamp(freq="M")
y_train, y_test = temporal_train_test_split(y, test_size=36)

y_train_df = pd.DataFrame(y_train,index = y_train.index,columns=['y'])
y_train_df["cap"] = max(y_train_df["y"])
y_train_df['floor'] = 0

forecaster = Prophet(
    growth = 'logistic'
)

forecaster.fit(y_train_df)

Expected behavior

The growth parameter compatible with prophet is equal to ‘logistic‘
Additional context

Versions

Details

from sktime import show_versions; show_versions()

System:
python: 3.8.3 (default, Jul 2 2020, 11:26:31) [Clang 10.0.0 ]
executable: /Users/baixiaotiao/opt/anaconda3/bin/python
machine: macOS-10.16-x86_64-i386-64bit

Python dependencies:
pip: 20.1.1
setuptools: 49.2.0.post20200714
sklearn: 0.24.2
sktime: 0.6.1
statsmodels: 0.12.2
numpy: 1.20.3
scipy: 1.5.0
Cython: 0.29.21
pandas: 1.2.5
matplotlib: 3.2.2
joblib: 0.16.0
numba: 0.50.1
pmdarima: 1.8.2
tsfresh: None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmodule:forecastingforecasting module: forecasting, incl probabilistic and hierarchical forecasting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions