Time series forecasting with Prophet

I am an Industrial Engineer utilizing the power of python to gain deeper insights in data.
I am currently learning Deep learning with TensorFlow
Search for a command to run...

I am an Industrial Engineer utilizing the power of python to gain deeper insights in data.
I am currently learning Deep learning with TensorFlow
No comments yet. Be the first to comment.
Comparing different methods of performing time series forecasting.
A time-series forecasting and anomaly-detection tool
I recently built an interactive A3 process improvement app using Claude Sonnet 4 - and here's the interesting part: the app itself uses Claude's API to analyze completed A3 documents. It's essentially Claude helping to build a tool that leverages Cla...

Comparing Mistral 7B vs. LLaMA-2 7B using HuggingFace

Implementing a RAG model

This took a bit of time to get the certificate, but circling back to follow up on a previous accomplishment — I officially completed an AI/ML Apprenticeship! [U.S. Department of Labor apprenticeship completion certificate for the AI/ML Fundamentals P...
A time-series forecasting and anomaly-detection tool

In this example, I am forecasting the future price of the AAPL stock, using data from the kaggle dataset starting with prices after 2015. View complete notebook here.
This model uses the Prophet library
from prophet import Prophet
After importing the AAPL price data from csv, I created a graph of the price over time.

The dataset includes column for Volume each day, which I will use as a regressor in the prophet model

I trained it on the whole dataset, predicting for future data 31 days in the future.
›
# building the model
m = Prophet(
seasonality_mode=sm,
seasonality_prior_scale=sps,
changepoint_prior_scale=cps)
m.add_regressor('Volume')
m.fit(training)
Creating predictions is pretty simple, just passing the future data frame.
# Forecasting
forecast = m.predict(future)
forecast.head(5)
Plotting the predictions
# Forecasting
forecast = m.predict(future_df)
m.plot(forecast);

The model shows a downward trend for the next 31 days.
It also makes plotting the model components easy. So you can see the yearly, weekly trends
# Components
m.plot_components(forecast);

I will be forecasting this same dataset using some other forecasting models to compare results. And combining them together.