Data, Features and Labels
Every sentence in the rest of this unit uses these words. They are short, they sound alike, and the paper has already caught students out by swapping two of them round. Ten minutes here saves marks in four lessons’ time.
1Data, features, labels
Which column is the label depends on the problem. If you are trying to work out what fruit this is from its colour, then colour is a feature and the fruit’s name is the label. Ask a different question of the same table and a different column becomes the label.
The first three columns are the features. The last one is the label — the answer we want the machine to give.
| Colourfeature | Sizefeature | Shapefeature | Fruitlabel |
|---|---|---|---|
| Red | Small | Round | Strawberry |
| Red | Medium | Round | Apple |
| Yellow | Medium | Long | Banana |
| Green | Medium | Round | Apple |
| Orange | Medium | Round | Orange |
| Yellow | Long | Long | Banana |
Labelled data. Every row carries its answer. A machine can learn the link between the features and the label from this — which is what supervised learning needs.
2Labelled and unlabelled data
| Labelled data | Unlabelled data | |
|---|---|---|
| What it is | Data with a tag or label attached | The raw form of the data, with no tag attached |
| Example | Photos already tagged with who is in them | A folder of photos nobody has named |
| Used by | Supervised learning | Unsupervised learning |
3Training set and testing set
The data you have does not all get used the same way. It is split in two.
Teaching, then testing
4From the board papers
Statement 2: The training data set is used to test the accuracy of the model.
Which of the following is correct?CBSE sample paper 2025–26
▶Show the answer
Both Statement 1 and Statement 2 are incorrect. They have been swapped. The training set is what the model learns from; the testing set is what its accuracy is measured on.
▶Show the answer
To evaluate the model’s accuracy. It is not used to train the model and it is not used to create new features — its whole job is to check how well the trained model does on data it has not seen.
5Check yourself
What are the columns of a dataset called?
Data to which no tag is attached is called:
Which set does the model actually learn from?