liveBook · Manning

Dataset

As explained in Grokking Machine Learning

A structured collection of data points intended for analysis or machine-learning tasks.

A dataset is a collection of records organized around data points and their features. In an app-recommendation example, each record pairs a user's platform and age with the app they downloaded. section 9.2

Table 9.2 A simplified version of the dataset in table 9.1, where the age column has been simplified to two categories, “young” and “adult” (view table figure)

Platform

Age

App

iPhone

Young

Atom Count

iPhone

Adult

Check Mate Mate

Android

Adult

Beehive Finder

iPhone

Adult

Check Mate Mate

Android

Young

Atom Count

Android

Young

Atom Count

The table shows six user records, each with platform, age category, and downloaded app. section 9.2

A decision tree splits a dataset into smaller groups using questions about its features. Datasets also need practical preparation: handle missing values, encode categories when needed, select useful features, and divide the data for training, validation, and testing. section 9.2 section 13.7

How Grokking Machine Learning covers it

How deep it goes
Explains feature-based splitting with app-download examples and outlines cleaning, encoding, feature selection, and data partitioning.
Examples
Uses app-download records grouped by platform or age, then describes numerical and categorical features such as age and animal types.
What you can do after
Apply it via Pandas and Scikit-Learn to prepare datasets and train, test, and evaluate machine-learning models.
How it connects
Connects datasets to decision trees, features, data cleaning, one-hot encoding, feature selection, and cross-validation.

Also explained in

Compare how 24 books explain dataset →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Machine Learning. The section links point to the parts of the book it draws on.