Feature
A feature is an individual measurable input variable used by a machine learning model — one column of data describing each example, such as a house's size or a customer's age.
Data & AI
Models learn from features to make predictions. If you're predicting house prices, the features might be square footage, number of bedrooms, and location, while the price is the label you're trying to predict.
Choosing and transforming good features — called feature engineering — is often more important to a model's success than the choice of algorithm. In a spreadsheet, each column (except the answer) is a feature, and each row is one example.
Examples
Python
import pandas as pd
df = pd.DataFrame({
"size": [800, 1200],
"bedrooms": [2, 3],
"price": [150, 250] # label
})
features = df[["size", "bedrooms"]]
print(list(features.columns))Output:
['size', 'bedrooms']