Machine learning. What it means.

Machine learning (ML) is the branch of AI in which software learns patterns from data and uses them to make predictions or decisions, instead of following rules a programmer wrote by hand.

By Brady Heinrich · Updated

Definition

Machine learning (ML) is the branch of AI in which software learns patterns from data and uses them to make predictions or decisions, instead of following rules a programmer wrote by hand.

What is machine learning?

Machine learning is a way of building software by example. You give an algorithm data, it finds the patterns, and the result is a model that can be applied to new cases it has not seen. A spam filter is the classic case: nobody lists every spam phrase. The system is shown millions of emails labelled spam or not spam and learns what separates them.

How does machine learning work?

  1. Collect data. Past examples of the thing you want to predict, such as closed deals marked won or lost.
  2. Choose features. The inputs the model may use: company size, pages viewed, days since sign-up.
  3. Train. The algorithm adjusts the model until its predictions on the training examples are as accurate as it can make them.
  4. Test. The model is scored on examples held back from training. This shows whether it learned a general pattern or memorised the training set, a failure called overfitting.
  5. Deploy and monitor. The model scores live cases. Accuracy is tracked because the world shifts and models go stale.

What are the types of machine learning?

TypeLearns fromTypical use
Supervised learningExamples with the right answer attachedLead scoring, churn prediction, spam detection
Unsupervised learningData with no labelsCustomer segmentation, anomaly detection
Reinforcement learningTrial and error with rewardsGame playing, robotics, bidding and pricing
Self-supervised learningRaw data where part is hidden and predictedTraining large language models

AI vs machine learning: what is the difference?

Artificial intelligence is the goal: machines doing tasks that need intelligence. Machine learning is the main method used to get there. All machine learning is AI, but not all AI is machine learning, because a system built from hand-written rules is AI too.

When is machine learning the wrong tool?

Machine learning is the wrong tool when a simple rule does the job, when there is too little data, or when a decision has to be explained step by step. "Flag any invoice over $10,000" needs no model. A useful test: if you cannot say what data the model would learn from and how you would know it was right, the project is not ready.

An example

A subscription business wants to predict churn. It takes two years of account history: logins per week, seats used, support tickets, plan and whether the account cancelled. A supervised model trained on 8,000 accounts and tested on 2,000 held-back ones correctly flags most of the accounts that later cancelled. Customer success now calls the 50 highest-risk accounts each month instead of waiting for cancellation emails.

The common mistake

Judging a model on the data it was trained on. A model can score nearly perfectly on examples it has already seen and fail on new ones. Always hold back data the model never saw, and re-check accuracy after launch.

How people search for machine learning

  • machine learning246,000 a month
  • what is machine learning18,100 a month
  • ai vs machine learning5,400 a month
  • machine learning vs ai5,400 a month
  • machine learning model2,400 a month

US monthly searches, Google Ads keyword data.

Related terms

Go deeper

Building something ambitious? Let's talk.

We reply within one business day.