liveBook · Manning

Machine learning

As explained in The Art of AI Product Development

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

A growing online shop can collect more customer feedback and behavior data than its product team can interpret by experience alone. Machine learning offers a way to find patterns in that data and support decisions such as personalized recommendations. Its value is not the model by itself, but whether those patterns help people make better decisions. section 4.0

Machine learning relies on mathematical computation, so inputs must be numerical. Preparing raw text, images, or other data for a model involves choosing a numerical representation. That choice matters: a coarse representation may discard information needed for the task. Data-cleaning and representation skills can also differ substantially between modalities. section 3.1.1

Choose the approach around the problem, not the appeal of a model:

  • Use explicit rules when a domain can be defined clearly enough to prototype quickly, produce predictable outputs, and begin collecting relevant training data. section 3.2.1
  • Consider machine learning when real-world nuances and edge cases limit what fixed rules can cover. The nature and complexity of the learning problem should guide the choice. section 3.2 section 3.2.1
Figure 3.4 One-hot encoding provides a simple numerical (algebraic) representation of words.
A screenshot of a computer

AI-generated content may be incorrect.

One-hot encoding makes the numerical-input requirement concrete: each word becomes a vector with one identifying 1 and zeros elsewhere. It is a simple but coarse representation, so ease of conversion should not be confused with preserving useful meaning. section 3.1.1

Forecasts that support inventory decisions

A supply chain manager risks waste from overstocking and lost customers from understocking. A demand-forecasting product can analyze historical data alongside market and weather trends. Its customer-facing promise should remain qualified: confidence intervals and the ability to override predictions help people use the forecast without treating it as certainty. section 12.2.2

Predictive AI can also classify data, structure unstructured information, and uncover relationships that are hard to see manually. Google search, spam filtering, and entertainment recommendations show how quietly such systems can become part of everyday use. For a product team, the practical question remains what decision needs support—and how to communicate the system’s limits to the people relying on it. section 4.0 section 12.2.2

How The Art of AI Product Development covers it

How deep it goes
Explains numerical preprocessing and the trade-off between rules and learned models, but stops short of model internals or mathematical derivations.
Examples
Uses one-hot encoding, personalized fashion recommendations, and inventory-demand forecasting to make data preparation and product value concrete.
What it assumes
Introduces numerical representation through one-hot encoding while flagging that preparation skills may not transfer easily between data modalities.
What you can do after
Evaluate/understand when learned models may improve on rules and how to set expectations for uncertain predictions.
How it connects
Connects machine learning to predictive AI, rule-based AI, preprocessing, recommendations, and demand forecasting.

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 The Art of AI Product Development. The section links point to the parts of the book it draws on.