What you will learn in Time Series Forecasting Using Foundation Models
How to build high accuracy predictive models
Chapter by chapter
Concepts explained in this book
- foundational modelA foundation model is a machine learning model trained on large, diverse data and applicable to a wide variety of tasks, often through adaptation or fine-tuning.
- fine-tuningFine-tuning is additional training of a pretrained model on task- or domain-specific data by updating some or all of its parameters.
- MoiraiMoirai is a foundation model designed for time-series forecasting across varied datasets.
- language modelA large language model is a neural-network model trained on large text corpora to perform language understanding and generation tasks.
- TimeGPTTimeGPT is a proprietary foundation model designed for time-series forecasting and related time-series analysis.
- prediction intervalA prediction interval is a range computed from a forecasting model that is expected to contain a future or unobserved value at a specified confidence level.
- TimesFMTimesFM is a foundation model designed for deterministic time-series forecasting.
- anomaly detectionAnomaly detection is the task of identifying observations or patterns that substantially deviate from expected behavior.
- context windowContext length is the fixed number of preceding sequence elements that a model can consider when processing an input.
- zero-shot forecastingZero-shot forecasting is forecasting with a model on a target time series without task-specific training or fine-tuning on that series.
- patchingPatching is the technique of grouping adjacent time-series points into fixed-length segments that are processed as tokens.
- mean absolute errorMean absolute error is the average of the absolute differences between predicted and actual values.
- symmetric mean absolute percentage errorSymmetric mean absolute percentage error is a percentage-based forecasting metric that measures absolute error symmetrically relative to predicted and actual values.
- N-BEATSN-BEATS is a neural forecasting model organized as stacks of blocks for modeling time series without requiring explicit series decomposition or input transformations.
- transformer architectureA neural-network architecture built from stacked attention and feed-forward processing components, typically organized into encoder and decoder parts.
- tokenA token is a discrete representation of a sequence segment, including a fixed-length set of past time steps and associated features.
- Lag-LlamaLag-Llama is a foundation model designed for probabilistic time-series forecasting using lagged series values and date-time features.
- pretrainingPretraining is initial training of a model on a large dataset to learn general patterns and relationships before applying it to specific tasks.
- point forecastDeterministic forecasting is the technique of predicting one value for each future time step without representing forecast uncertainty.
- tokenizationTokenization is the process of converting input data into discrete units suitable for sequence-model processing.
- decoder-only transformerA decoder-only transformer is a transformer architecture that generates sequence outputs autoregressively from previously generated tokens without an encoder component.
- ChronosThe Chronos framework adapts language models into pretrained probabilistic forecasting models by transforming time-series data into a discrete representation.
- patch lengthInput patch length is the number of time steps grouped into each input patch.
- FLAN-T5Flan-T5 is an instruction-tuned text-to-text transformer model designed to follow natural-language instructions across tasks.
- Time-LLMTime-LLM is a language-model-based framework that adapts existing large language models for time-series forecasting.
- time-series foundation modelA foundation forecasting model is a broadly pretrained model specialized for forecasting tasks, particularly across time-series data.
- forecastingTime-series forecasting is the task of predicting future values of a variable or collection of variables indexed over time.
- seasonality effectSeasonality is a recurring pattern in a time series associated with a fixed cycle, such as weekly, daily, or twice-daily repetition.
- encoder-only transformerAn encoder-only transformer is a transformer architecture composed of encoder-style sequence-processing layers without a separate decoder.
- SARIMASARIMA is a seasonal autoregressive integrated moving-average model for forecasting time series with recurring seasonal structure.
- probabilistic modelA probabilistic model represents uncertainty by assigning probability distributions to possible data or prediction outcomes.
- data-specific modelA forecasting model designed and trained for a particular dataset, domain, or use case rather than broad general-purpose use.
- few-shot learningA few-shot prompt is a model input that includes a small number of examples to demonstrate the desired task or output behavior.
- transfer learningTransfer learning is a technique that applies knowledge learned by a model on one dataset or task to a different dataset or task.
- binary attention biasA binary attention bias is a learned additive bias that distinguishes attention between positions from the same variate and positions from different variates.
- mixture modelA mixture distribution is a probability distribution formed by weighting and combining multiple component distributions.
- any-variate attention mechanismAn any-variate attention mechanism enables attention over flattened sequences containing an arbitrary number of input variates.
- multi-head attentionAn attention mechanism with multiple parallel attention heads that combines information from different representation subspaces.
- promptA system prompt is an instruction supplied to a language model that establishes its context, behavior, tone, or response constraints.
- patchA patch is a segment of consecutive time-series observations grouped as one model input unit.
- conformal predictionConformal prediction is a model-agnostic, distribution-free method for constructing prediction intervals with a specified coverage level.
- PandasDatasetPandasDataset is a GluonTS dataset representation that stores time-series data in a format compatible with GluonTS models.
- encoderAn encoder is the sequence-processing component of a transformer that receives token representations and transforms them into contextual representations.
- f-scoreF1 score is the harmonic mean of precision and recall.
- mean scalingMean scaling is a data transformation that divides each value by the mean of the absolute values of all values in a series.
- validation windowA validation window is a contiguous held-out time period on which a forecast is generated during cross-validation.
- nixtlanixtla_client is a client library for interacting programmatically with Nixtla forecasting services and retrieving forecast-related outputs.
- embedding layerAn embedding layer is a neural-network layer that maps input items or tokens to learned numerical vector representations.
- chain-of-thought promptingChain-of-thought prompting is a prompting technique that elicits intermediate reasoning steps before a model produces an answer.
- residual errorA forecast residual is the difference between an actual value and its predicted value.
- quantizationQuantization is the conversion of continuous numerical values into a finite set of discrete levels or tokens.
- GluonTSGluonTS is an open-source Python toolkit for building, training, and evaluating probabilistic time-series models.
- inference performanceInference time is the duration required for a model to generate predictions from its input.
- reprogrammingReprogramming is the technique of adapting a pretrained language model's representations or processing so it can perform a different task such as forecasting.
- M3 datasetThe M3 dataset is a collection of 3,003 time series from the M3 forecasting competition sampled at yearly, quarterly, and monthly frequencies.
- out-of-sample forecastAn out-of-sample forecast is a prediction for future observations that were not included in the model input or fitting data.
- predictive distributionA predictive distribution is a probability distribution over possible future values conditional on observed input data.
- PyTorch LightningPyTorch Lightning is an open-source deep-learning framework that organizes PyTorch training and deployment code.
- conformity scoreA conformity score is a numerical measure of how atypical an observation is relative to a prediction, here computed as the absolute forecast residual.
- exchangeabilityExchangeability is a probabilistic property under which reordering a collection of observations does not change their joint likelihood.
- student's t-distributionStudent's t-distribution is a probability distribution with heavier tails than a normal distribution, commonly used when estimating uncertain quantities from limited data.
- mean squared errorMean squared error is the average of the squared differences between predicted and actual values.
- weight decayL2 regularization is a penalty method that discourages large model weights by adding their squared magnitudes to the optimization objective.
- Moirai-MoEMoirai-MoE is a Moirai-based universal time-series forecasting model that uses fixed-length, nonoverlapping patches across frequencies.
- seasonal naïve modelA seasonal naïve model forecasts each value using an observation from the corresponding position in a previous seasonal cycle.
- pretrained modelA pretrained model is a model whose parameters were learned on earlier data before its application to a new task or dataset.
- neuralforecastNeuralForecast is an object in the neuralforecast library that manages data windows, batching, and model training.
- sequenceTime-series data are observations indexed by time, often representing measurements collected sequentially.
- data scarcityData scarcity is a condition in which too little suitable data is available for training or analysis.
- precisionPrecision is the proportion of observations labeled positive by a detection system that are actually positive.
- recallRecall is the proportion of actual positive observations that a detection system correctly identifies.
- zero-shot promptingZero-shot prompting is prompting a model to perform a task without providing task-specific examples in the prompt.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.
