【问题标题】:What is the definition of each of the columns of Prophet's prediction output?Prophet 的预测输出每一列的定义是什么?
【发布时间】:2019-06-21 15:59:35
【问题描述】:

当我在 Prophet 模型上调用 predict 时,平均预测为 yhat,但是当我对平均趋势和季节性列求和时,这不等于 yhat 中的值。

为什么列中的项不等于yhatyhat_loweryhat_upper

【问题讨论】:

    标签: r dataframe prediction facebook-prophet


    【解决方案1】:

    用这个方程预测 Prophet 的函数:

    df2['yhat'] = (
                    df2['trend'] * (1 + df2['multiplicative_terms'])
                    + df2['additive_terms']
            )
    

    因此,如果您想手动创建yhat,您需要以给定的方式使用这三列。如果您添加任何其他列,它将被重复计算,因为它已经包含在 additive_termsmultiplicative_terms 中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-08-21
      • 1970-01-01
      • 1970-01-01
      • 2017-12-17
      • 1970-01-01
      • 1970-01-01
      • 2022-12-17
      相关资源
      最近更新 更多