liveBook · Manning

Machine learning

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

Machine learning is a field of artificial intelligence in which systems infer patterns from data to make predictions or decisions.

Machine learning helps computers learn patterns from data and use them to make predictions. In supervised learning, labeled examples pair objects with known categories; the system calculates features from those examples and applies what it learned to a new, unlabeled object. section 11.1 section 11.8

Identifying an unknown author

Treat known books as training objects and their authors as labels. Features such as average word length, average words per sentence, and sentence complexity form a signature for each book. Comparing an unknown book with the learned signatures produces a predicted author, though the guess can be wrong or the author may be new. section 11.1 section 11.8

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

How deep it goes
Defines supervised learning and demonstrates feature-based prediction, without covering model internals or advanced methods.
Examples
Uses authorship identification with book texts, author labels, writing features, and book signatures.
What you can do after
Apply labeled examples and measurable features to predict the category of a new object.
How it connects
Ties artificial intelligence to supervised learning, training data, features, labels, and prediction.

Also explained in

Compare how 42 books explain machine learning →

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.