Examples, Features, and Targets
An example supplies observed features used for prediction and, in supervised learning, a target specifying the answer for training or evaluation.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace a simple measurement task
A record can store parcel weight and distance as features and delivery time as the target. Time cannot be an input when predicting it before delivery. See record granularity.
Represent when each value is known
A feature computed later may be available in historical data and absent at real prediction time. Data leakage explains why that timing belongs in the design.[1]
Write one prediction row at the decision time
Suppose a service predicts whether a package will arrive the next day. Distance and dispatch hour may be features available when dispatched. Actual arrival is a later observation from which the target is constructed. Accidentally feeding arrival time into the predictor defeats the intended task. See feature availability.
Example ID: shipment 7
Features at dispatch: distance, hour
Target after observation: arrived next day, yes or no
Explicitly record prediction time
Choose the observation unit before building data
One row per package differs from one row per scan. Repeated scans of the same package can span training and validation if split carelessly. Group examples by identity where necessary.