Dataset
A dataset is a structured collection of data used to train and evaluate machine learning models. It is typically organized as rows of examples and columns of features.
Data & AI
Each row is one example (one house, one customer, one image) and each column is a feature describing it, often with a label column holding the correct answer. Datasets are usually split into training, validation, and test portions.
The famous Iris and MNIST datasets are common starting points for learning. The size, quality, and balance of a dataset strongly influence how well a model can learn.
Examples
Python
from sklearn.datasets import load_iris
data = load_iris()
print(data.data.shape, "->", len(data.target_names), "classes")Output:
(150, 4) -> 3 classes