Open Agent School · Public worked example

Training & Inference: meaning and example

Welcome! Take one idea with you today.

Training adjusts a model's parameters using examples and an objective. Inference uses a chosen set of parameters to produce an output for an input. Ordinary inference does not update those parameters, even when the application keeps a conversation history or retrieves new documents.

Picture it: A courier estimates travel minutes from distance using invented trips. During training it adjusts a slope and an offset to reduce errors. At dispatch time it receives a new distance and returns minutes using the frozen values. Adding a new trip to a spreadsheet does not change the deployed estimator until a training and release process uses it.

What is easy to mix up?

A message may affect the current context or an application memory store. That is different from updating model weights. Later provider training depends on the product, settings, and data policy.

Teaching example by Open Agent School. Source: scikit-learn - Getting Started: fitting and predicting.