Understanding Features in Machine Learning
Q: Define what a feature is in machine learning and give an example.
- Machine learning
- Junior level question
Explore all the latest Machine learning interview questions and answers
ExploreMost Recent & up-to date
100% Actual interview focused
Create Machine learning interview for FREE!
In machine learning, a feature is an individual measurable property or characteristic of a phenomenon being observed. Features are the input variables used in predictive modeling, and they play a crucial role in influencing how well a model performs.
For example, if we are building a model to predict housing prices, features might include the size of the house in square feet, the number of bedrooms and bathrooms, the location of the property, and the age of the house. Each of these features provides valuable information that the model can use to understand the relationship between the input data and the target variable, which in this case is the price of the house.
In summary, features are essential components of datasets in machine learning, serving as the foundation for building and training models.
For example, if we are building a model to predict housing prices, features might include the size of the house in square feet, the number of bedrooms and bathrooms, the location of the property, and the age of the house. Each of these features provides valuable information that the model can use to understand the relationship between the input data and the target variable, which in this case is the price of the house.
In summary, features are essential components of datasets in machine learning, serving as the foundation for building and training models.


