Learn from examples with known answers
How models learn from features paired with known targets to predict categories through classification or numeric quantities through regression. · foundational
Supervised learning learns from examples that pair inputs with known answers. The inputs are described by features. The answer the model should learn to predict is the target, also called a label. A labeled example contains both.
For delivery predictions, features could include journey distance and package weight. The target could be the actual delivery duration recorded after the delivery finished. Many such examples give the model evidence about how inputs relate to outcomes.
The target depends on the question you want to answer. To predict duration, historical durations must be available. Useful training examples need reliable targets and should represent the kinds of deliveries the model will predict later.