liveBook · Manning

Training dataset

As explained in Learn AI-Assisted Python Programming, Second Edition

Training data is the collection of examples used to fit a machine-learning model and establish the statistical patterns it predicts.

A training dataset is a collection of examples with known categories, or labels, used to help a machine-learning system learn patterns and make predictions. section 11.1

A supervised-learning training dataset contains:

  • Objects to classify, such as book texts. section 11.1
  • Known categories or labels, such as the authors of those books. section 11.1
  • Features calculated from each object, such as average word length or average words per sentence. section 11.1 section 11.8

Identifying an unknown author

Train on books whose authors are known, calculate writing-style features for each book, and use the learned patterns to predict the author of a mystery book. section 11.1

How Learn AI-Assisted Python Programming, Second Edition covers it

How deep it goes
Explains objects, labels, features, training, and prediction without descending into model internals.
Examples
Uses books, authors, average word length, and average words per sentence as examples of data, labels, and features.
What you can do after
Apply supervised learning by extracting features from known books and predicting the author of a mystery book.
How it connects
Connects supervised learning with machine learning, features, labels, and prediction.

Also explained in

Compare how 36 books explain training dataset →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn AI-Assisted Python Programming, Second Edition. The section links point to the parts of the book it draws on.