SverreNystad / power-predictor

Using Machine Learning for time series forecasting of photovoltaic measurement for solar systems based on weather features
Other
6 stars 2 forks source link

Prophet #16

Closed SverreNystad closed 8 months ago

SverreNystad commented 9 months ago

Video: https://www.youtube.com/watch?v=j0eioK5edqg Notebook: https://www.kaggle.com/code/robikscube/time-series-forecasting-with-prophet-yt/notebook

SverreNystad commented 9 months ago

Code snippet for Prophet

from fbprophet import Prophet

# Prepare dataframe df with columns 'ds' and 'y'
model = Prophet()
model.fit(df)

# Make future dataframe
future = model.make_future_dataframe(periods=365)
forecast = model.predict(future)

# Plotting the forecast
fig = model.plot(forecast)
SverreNystad commented 8 months ago

Tried but did not give better results then XGBoost