aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 1. Introduction to Machine Learning
Lesson 8 of 13 8 min · 184 words

Datasets, features and labels

Rows are examples, columns are features, and the label is what we want to predict.

A dataset is a table. Each row is one example (also called a sample, instance or observation). Each column is a feature (attribute, variable) describing that example. One special column — the thing we want to predict — is the label or target.

We usually write the features as a matrix with examples and features, and the labels as a vector . Example is the row with label .

Features can be numerical (age, income), categorical (city, colour) or ordinal (low / medium / high). Categorical features are usually turned into numbers with one-hot encoding. Images, audio and text are also features — just very many of them (every pixel or every token).

Feature engineering — creating useful features such as ratios, dates split into weekday and month, or log-transformed amounts — often matters more than the choice of algorithm for tabular data.

Formula to remember

Dataset

A supervised dataset: n examples, each a feature vector with its label.

Quick check · +5 XP

Predicting tomorrow's temperature in Tashkent is…

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser