【问题标题】:Prophet forecasting in Python with Saturating MinimumPython中的先知预测,具有饱和最小值
【发布时间】:2021-05-20 01:20:25
【问题描述】:

我是 Python 新手,没有编码和编程经验,我正在尝试通过 Python 中的 Prophet 创建预测模型。下面插入的是来自https://facebook.github.io/prophet/docs/saturating_forecasts.html#saturating-minimum 的饱和最小值示例代码,我想问一下代码第一行中的值“10”是什么意思。

df['y'] = 10 - df['y']
df['cap'] = 6
df['floor'] = 1.5
future['cap'] = 6
future['floor'] = 1.5
m = Prophet(growth='logistic')
m.fit(df)
fcst = m.predict(future)
fig = m.plot(fcst)

【问题讨论】:

    标签: python time-series forecasting facebook-prophet


    【解决方案1】:

    他们只是在反转数据趋势。 例如,如果您有一个系列:

    df[y] = 1, 2, 3, 4
    
    10 - df[y] = 9, 8, 7, 6
    

    我认为这只是为了演示目的,因此当趋势向下而不是向上时,它们可以显示底特征的使用。

    【讨论】:

      猜你喜欢
      • 2021-12-02
      • 1970-01-01
      • 1970-01-01
      • 2023-03-13
      • 1970-01-01
      • 2011-07-14
      • 1970-01-01
      • 2020-10-05
      • 2019-12-02
      相关资源
      最近更新 更多