forecaster.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:prophet 作者: facebook 项目源码 文件源码
def predictive_samples(self, df):
        """Sample from the posterior predictive distribution.

        Parameters
        ----------
        df: Dataframe with dates for predictions (column ds), and capacity
            (column cap) if logistic growth.

        Returns
        -------
        Dictionary with keys "trend", "seasonal", and "yhat" containing
        posterior predictive samples for that component. "seasonal" is the sum
        of seasonalities, holidays, and added regressors.
        """
        df = self.setup_dataframe(df.copy())
        sim_values = self.sample_posterior_predictive(df)
        return sim_values
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号