What Is an AI Model

Updated · 6 min read

How does a phone app read a number you wrote by hand? Navika, in Dallas, photographs a handwritten note from her older sister Srihitha, and her phone turns the scribbled "52" into typed text. Nobody wrote a rule for every way a person can write a 5 or a 2. Something inside the app learned what handwritten digits look like.

That something is a model. You have met the word in every lesson so far; this lesson explains exactly what it means.

A Model, Defined

An AI model is a computational system that learned patterns from data and uses them to produce outputs. Three parts of that sentence matter:

  • "Learned patterns from data": the model was trained on examples, such as thousands of handwritten digits with their labels.
  • "Uses them": once trained, the model applies those patterns to new input it has never seen.
  • "Produce outputs": a prediction, a label, a piece of text, an image or a number.
A model learns from labeled examples, then reads something new

The Handwritten Digits Example

Reading handwritten digits is one of the classic problems in machine learning. For decades, researchers taught and tested models on a public collection of 70,000 handwritten digits, known as MNIST. The steps are the same ones you saw in the picture:

StepWhat happensIn the example
1. Collect dataGather many examples with labelsThousands of handwritten digits, each marked 0 to 9
2. TrainThe model adjusts itself to match the labelsIt learns which loops and lines make a 2, a 5 or an 8
3. Use (inference)Give it new input and read the outputA new "52" comes out as the text 52

Notice that the trained model doesn't contain the training photos. It contains what it learned from them, stored as numbers. You will see what those numbers are in "Parameters: What a Model Learns".

Input, Model, Output

Every model, however large, follows the same shape: input → model → output.

ModelInputOutput
Digit readerA photo of handwritingThe digits it shows
House-price modelArea, bedrooms, age, locationA predicted price, such as $284,000
Spam filterAn emailSpam or not spam
Chat assistant's language modelYour question, as textA reply, as text

Common Mistakes

Thinking a model is the whole app. The model is one part; the app around it adds the screen, the rules and the checks, as "Model vs Application vs Interface" shows.

Thinking a model stores its training data. It stores learned numbers, not a copy of every example.

Thinking a model's output is a fact. It is the model's best guess, based on patterns, and it can be wrong.

Interview Corner

What is an AI model?

A computational system that learned patterns from data and uses them to produce outputs. It is trained on examples, then applied to new input, such as reading a handwritten number or predicting a price.

What is the difference between training a model and using it?

Training adjusts the model so its outputs match the labels in the training data. Using it, called inference, gives the trained model new input and reads its output. The next chapter covers both in detail.

Practice

Exercise: input, model, output. Pick five AI features you use, such as photo search, voice typing or a map's arrival time. For each one, write the input, the kind of model it probably uses, and the output. Which one was hardest to describe, and why?

Check your understanding:

  1. Define an AI model in one sentence.
  2. Does a trained digit reader contain the photos it learned from?
  3. What are the input and output of a spam filter?

Quick check: what is an AI model

4 questions
1What is an AI model?
2A digit reader was trained on thousands of handwritten digits. What does the trained model keep?
3What is the output of a house-price model?
4Which shape do all models follow?

Key Takeaways

Quick reference

TermMeaning
ModelA system that learned patterns from data and uses them to produce outputs
TrainingAdjusting a model so its outputs match the training labels
InferenceUsing a trained model on new input
InputWhat goes into a model, such as a photo or a question
OutputWhat comes out, such as a label, a number or text

Was this tutorial helpful?

Lesson 13 of 186