flat_growth_init: Initialize flat growth.

Description Usage Arguments Value

Description

Provides a strong initialization for flat growth by setting the growth to 0 and calculates the offset parameter that pass the function through the mean of the the y_scaled values.

Usage

1

Arguments

df

Data frame with columns ds (date), y_scaled (scaled time series), and t (scaled time).

Value

A vector (k, m) with the rate (k) and offset (m) of the flat growth function.


prophet documentation built on March 30, 2021, 5:05 p.m.