David Andrés 🤖📈🐍 Profile picture
Jan 6, 2023 10 tweets 4 min read Read on X
Don't forecast future values in Time Series using the traditional way!! ⛔

Discover the Rolling forecasting! 🤯

#python #machinelearning #ml #ai #datascience
Yesterday we discussed the first way of forecasting with your Time Series model:
1️⃣ The traditional way or multi-step forecast

Today is time for the second (and better) way:

2️⃣ Rolling forecast
2️⃣ Rolling forecast

As mentioned yesterday, this consists of training the model every day, with all the available data until the present day.

Then we forecast for tomorrow. Image
Let's continue with yesterday's example.

The data we used was the Apple stock price.
We assumed that today was 30/11/2021.

We split the data in two:
- Training: prices until "today"
- Testing: prices from "today"
- Training set to train the model.

- Testing set to evaluate the results, as this is the Actual price to match. Image
This will consider all the available data, which will significantly improve the predictions! 🤯

NOTE: this data or model are not the best ones, so this model seems to kind of replicate the previous price. This was not the purpose of this thread, so we will not focus on that.
▶️ TL;DR

The rolling forecasting method is a much better way of evaluating your Time Series model.

The traditional method performs poorly as it does not consider all the available data.
Check yesterday's thread about the Traditional forecasting method 👇
Please 🔁Retweet the FIRST tweet if you found it useful!

🔔 Follow me @daansan_ml if you are interested in:

🐍 #Python
📊 #DataScience
📈 #TimeSeries
🤖 #MachineLearning

Thanks! 😉

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with David Andrés 🤖📈🐍

David Andrés 🤖📈🐍 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @daansan_ml

Jun 10
CNNs learn through hierarchical feature extraction: each layer builds on the one before. This structure is what makes them so powerful for vision tasks.

Let's break it down 👇🧵 Image
🟢 Early layers focus on low-level features extracted directly from pixel intensities.

These include:
• Edges
• Lines
• Curves
• Textures

They form the foundation for all further recognition. Image
🟠 Middle layers combine low-level patterns into more complex structures.

This is where the network begins to recognize:
• Shapes
• Motifs
• Patterns
• Parts of objects Image
Read 6 tweets
Jul 28, 2024
Introduction to some Advanced EDA Techniques 👇 Image
1️⃣ Dimensionality Reduction
For datasets with many variables, techniques like Principal Component Analysis (PCA) or t-SNE can help you visualize high-dimensional data in two or three dimensions.
2️⃣ Clustering
Unsupervised learning techniques like K-means clustering can help identify natural groupings in your data that might not be apparent from simple visualizations.
Read 6 tweets
Jul 27, 2024
EDA clearly explained 👇 Image
Exploratory Data Analysis (EDA) is a process used for investigating your data to discover patterns, anomalies, relationships, or trends using statistical summaries and visual methods.
It is essential for understanding the data's underlying structure and characteristics before applying more formal statistical or Machine Learning methods.

Some key points that we should normally check are👇
Read 13 tweets
Jul 21, 2024
Multi Query, an Advanced Retrieval Strategy for RAG, clearly explained 👇 Image
Multi Query is a powerful Query Translation technique to enhance information retrieval in AI systems.

It involves generating multiple variations of an original query to improve the chances of finding relevant information.
How it works:
Instead of relying on a single query, Multi Query uses language models to create several rephrased versions of the original question. Each version captures different aspects or interpretations of the user's intent.
Read 7 tweets
Jul 14, 2024
DBSCAN clearly explained 👇 Image
DBSCAN, or Density-Based Spatial Clustering of Applications with Noise, is a powerful clustering algorithm.

It finds clusters of varying shapes and sizes while handling noise and outliers.
What is it?
DBSCAN is an unsupervised learning algorithm that groups together closely packed points and marks points in low-density regions as outliers.
Read 8 tweets
Jul 7, 2024
Linear Regression clearly explained 👇 Image
What is it?

Linear Regression is a statistical method for predicting the value of a continous dependent variable based on one or more independent variables. It estimates the relationship using a linear equation.
How it works:

• Take input features

• Calculate a weighted sum plus a bias term

• Use the equation ( y = β₀ + β₁x₁ + β₂x₂ + ... + βₙxₙ )

• Minimize the error (usually Mean Squared Error)
Read 8 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(