Machine Learning · AI216

What is Machine Learning?

Machine Learning Study guides

Machine learning is the field of study that gives computers the ability to learn from data without being explicitly programmed for every rule.

In classic programming you write rules, feed in data, and get answers. In machine learning you feed in data and the expected answers, and the algorithm works out the rules itself. Those rules form a model you can then apply to new data.

It shines where hand-written rules are long or constantly changing (spam filtering), where no good traditional solution exists (speech recognition), where the environment shifts, and where you want to find patterns in huge amounts of data (data mining).

Key points

  • Learning from data instead of hand-coded rules.
  • A ML solution is usually shorter, easier to maintain and often more accurate than a long list of rules.
  • It adapts: retrain on new data and the system follows changes.
  • It helps humans learn: inspecting a model can reveal patterns nobody noticed.

Worked example

A spam filter written with rules needs a new rule every time spammers change wording. A ML filter learns which words and phrases predict spam from labelled emails, and you just retrain it when the spam changes.

Common questions

Is machine learning the same as AI?

No. AI is the broad goal of intelligent behaviour. Machine learning is one way to get there: systems that improve from data.

What was the first ML application that became mainstream?

The spam filter, which went mainstream in the 1990s.

Practice questions on this topic

Try these, then open the app to check your answers with explanations.

  1. ML is Great for Complex problems for which using a traditional approach yields no good solution.
    • A. true
    • B. false
  2. It is the field of study that gives computers the ability to learn without being explicitly programmed.
    • A. true
    • B. false
  3. ML is Great for .............
    • A. Problems for which existing solutions require a lot of fine-tuning
    • B. Complex problems for which using a traditional approach yields no good solution.
    • C. Getting insights about complex problems
    • D. All of them are true
  4. Machine Learning is the field of study that gives computers the ability to learn with being explicitly programmed.
    • A. true
    • B. false
  5. In Traditional Approach is much shorter, easier to maintain, and more accurate.
    • A. true
    • B. false
  6. Traditional Approach is good for Problems for which existing solutions require a lot of fine-tuning or long lists of rules.
    • A. true
    • B. false