Feature
Also known as: input variable
One measurable fact about an example, such as a price or an age, that a model reads as input when it makes a guess.
Draft - this entry has not been reviewed yet.
Formal
A single input value describing an example, given to a model as a number or turned into numbers first; in training data each example is a row of features, often paired with a label.
In plain English
Like the boxes on a form, such as age, income and address, that a bank clerk reads before deciding on a loan.
In practice
A housing company that wants to guess the rent a flat can fetch gives its model the size in square metres, the number of rooms, the floor and the distance to the nearest train station.
Why it matters
A model can only find patterns in what it is shown, so a missing, wrong or unfair input limits every answer it gives.
Technical deep dive
In the standard supervised setting each example is a feature vector x in R^d together with a label y, and a dataset is a design matrix with one row per example and one column per feature (Goodfellow et al., Deep Learning, ch. 5). Google's ML glossary defines a feature simply as an input variable used in making predictions. Features are numerical, categorical (a postcode, a product type) or ordinal (a rating from one to five); categorical features must be encoded before most models can use them, for example with one-hot encoding or ordinal encoding, and numeric features are often standardised to zero mean and unit variance so that no single scale dominates distance or gradient computations.
Features are distinct from model parameters: features are properties of the data supplied at inference time, while parameters (weights) are learned during training. They are also distinct from the label, which is the value to be predicted. Statistics calls features independent or explanatory variables, covariates or predictors; the machine learning term is used here.
Feature quality bounds model quality. Irrelevant or redundant features add noise and raise the risk of overfitting, which is why feature selection and dimensionality reduction exist. A feature that encodes information unavailable at prediction time, such as a field filled in only after the outcome is known, causes target leakage and inflated offline scores. Features that act as proxies for protected characteristics (postcode for ethnicity, for instance) can carry bias into decisions even when the protected attribute itself is removed.
In deep learning the raw input (pixels, tokens) is still the feature vector, but the network learns intermediate representations, often also called features or learned features, in its hidden layers. Interpretability work on large models uses the word in this second sense, for directions in activation space that correspond to human-meaningful concepts.
What to learn first
Everything this builds on, foundations first.
- Training data
- →Feature
Relationships
- Requires
- Training data
- Unlocks
- Decision treeDimensionality reductionFeature engineeringk-means clusteringLinear regressionLogistic regression
- Don't confuse with
- Model parameter
- Used with
- Label
Sources & further reading
Official documentation
- Machine Learning Glossary · Google for Developers
- scikit-learn User Guide, Preprocessing data · scikit-learn
Reference works
- Machine Learning Crash Course: Supervised learning terminology · Google for Developers
Textbooks
Where this data comes from
This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.
See the review queueSuggest a correction on GitHubThis term as JSON
Mentioned in
Check yourself
Loading…