predict_trend_logistic_curve

predict_trend_logistic_curve(fit_result: Dict[str, Union[lmfit.model.ModelResult, pandas.core.frame.DataFrame]], days_to_predict: int = 30) → pandas.core.frame.DataFrame[source]

Implementation of fit_data_model, with setting specific to the logistic curve model

Parameters
  • fit_result (Dict[str, Union[lmfit.model.ModelResult, pd.DataFrame]]) – result of fit_data_model or its implementation

  • days_to_predict (int, optional) – number of days to predict a trend for, by default 30

Returns

DataFrame with columns “date”, “trend”, “trend_sup” and “trend_inf”

date: pd.Datetime

date of the values

trend: float

predicted trend

trend_sup: float

supremum of the trend

trend_inf: float

infimum of the trend

Return type

pd.DataFrame

See also

predict_trend(), fit_data_model(), calc_extrema(), params_to_df()