A Beginner's Guide to
ZERO-SHOT
TIME SERIES
PREDICTION
WITH TSFM
Save and Share!
CLONING THE TSFM LIBRARY
The first step is to get the Tiny Time Mixer (TSFM) library,
which provides tools and models for time series
forecasting. Think of it like installing an app on your
device before you start using it.
Let’s Swipe Right
CREATING A SAMPLE
DATASET
We’ll create a simple dataset with values that fluctuate
like stock prices or weather patterns. Then, we set up
some basic parameters. These parameters tell the
model how far back it should look at past data
(context) and how far forward it should predict
(forecast length).
Let’s Swipe Right
SPLITTING THE DATA INTO
TRAIN, VALIDATION, AND
TEST SETS
We divide our data into three parts: training (for
learning), validation (for fine-tuning), and testing (for
final evaluation). This is like studying, reviewing, and
then taking a final exam.
Let’s Swipe Right
PREPARING THE DATA FOR
THE MODEL
Here, we prepare the data so the model can
understand it. We specify the columns for time and the
values we want to predict.
Let’s Swipe Right
EVALUATING THE ZERO-
SHOT MODEL AND SETTING
UP THE FORECASTING
PIPELINE
We're ready to evaluate our zero-shot model, which is
pre-trained and doesn't need extra training to make
predictions. Next, we set up a forecasting pipeline that
processes data through the model to generate
future predictions, creating a smooth path from data
to results.
Let’s Swipe Right
GENERATING FORECASTS
AND VISUALIZING RESULTS
We’re now ready to generate predictions for future
values using the model. This is where we see the
forecast based on the past data provided. Finally, we
visualize the results to understand how well the zero-
shot model’s predictions match the actual data
Let’s Swipe Right
TAKE THE NEXT STEP IN
TIME SERIES FORECASTING
FOR FREE!
Dive into predicting Bitcoin closing prices using IBM's
Tiny Time Mixer (TSFM).
LINK IN CAPTION!
SAVE & SHARE