Prophet Fit
We fit the model by instantiating a new Prophet
object. Any settings to the forecasting procedure are passed into the constructor. Then you call its .fit()
method and pass in the historical dataframe. Fitting should take 1-5 seconds.
Aufgabe
Swipe to start coding
- Import
Prophet
fromprophet
; - Initialize the
Prophet
object; - Pass the historical DataFrame to the method.
Lösung
9
1
2
3
from prophet import Prophet
m = Prophet(daily_seasonality=True)
m.fit(data_for_prophet)
Mark tasks as Completed
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 8
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen