ARTIFICIAL INTELLIGENCE · LESSON 2 OF 8

How does AI work?

Many AI systems are trained using examples. Software adjusts a mathematical model to identify useful patterns, then applies those patterns when processing new information.

Read the explanations, explore the activity and answer the knowledge check. No programming knowledge is assumed.

Training versus using AI

Training is the process of adjusting a model from examples. Inference is the name for using a trained model to make a prediction or produce an answer. They are different activities.

A simple example

Imagine showing a system thousands of labelled pictures of different animals. During training it learns visual patterns associated with those labels. Later it may estimate which animal is in a picture it has not seen before.

What about chatbots?

Language models work with pieces of text called tokens. They generate responses using patterns learned during training and the information available in their context. Their answers may sound confident even when they are inaccurate.

HALF ECHO LEARN / EXPLORE & UNDERSTANDILLUSTRATIVE / NOT A LIVE AI SERVICE

Follow an example through the system.

TRAINING / PREPARE

Examples

Labelled animal picturesTraining and evaluation data

For a supervised image classifier, people assemble and label example images. Separate evaluation data helps test performance beyond the examples used to fit the model.

Illustrative supervised-learning workflow. AI also includes other learning methods and rule-based systems. No model is running here.

COMPUTING FOUNDATIONS · STEP 6 OF 13

Check what you learned

Answer both questions correctly to complete this step. You can revise your answers and retry.

1. A model adjusts parameters using examples. What is this called?
2. Why keep evaluation examples separate from training examples?

Progress stays in this browser. It is not synced to an account or sent as analytics. Passing these introductory checks is not certification.

Explore another AI topic

About this lesson

Half Echo Learn explanation and introductory activity. Educational illustrations do not represent a running AI service. The knowledge check tests the concepts on this page.

Browse all AI lessons →