shapesinfinity.
Learn AI · Beginner · 3 min

How AI Learns: Three Key Dials

What if changing one number made your AI much smarter?

The Three Training Dials
Training dataBatch size: how many examples at onceModel makes a guessLearning rate: how much to changeEpoch: do this many timesTrained model ready

Data flows in, gets split into batches, model learns with a learning rate, repeats for each epoch.

goes inthe AI workscomes out

In simple words

Imagine teaching someone to cook. Learning rate is how fast they change their recipe. Epochs is how many times they practice. Batch size is how many meals they cook before fixing mistakes.

The real definition

Learning rate controls how much the model changes after each guess. Epochs is how many complete passes through all data the model makes. Batch size is how many examples the model learns from before updating itself.

Like… Learning to Throw Darts

Batch size is like throwing three darts, then looking at where they landed. Learning rate is how much you move your arm after looking. Epochs is how many rounds you play total.

But: Real learning is slower and less automatic than AI training.

You see it every day

on your phone

Photo recognition app

Phone app learns to recognize faces using small batches of 32 photos per step and slow learning rate.

out in the world

Weather prediction

Weather AI trains on 10,000 temperature records. It uses big batches and runs 100 epochs to get accurate.

at work

Company sales forecast

Sales team trains model on past sales data with medium batch size and fast learning rate for quick results.

Step by step

  1. 1

    Pick your batch size

    Decide how many examples the model learns from at once.

  2. 2

    Set your learning rate

    Choose how much to change the model after each batch.

  3. 3

    Choose your epochs

    Decide how many times the model sees all your data.

  4. 4

    Train and watch

    Start training. The model learns, repeats, and improves slowly.

  5. 5

    Check if it worked

    Test the model. If bad, adjust the three dials again.

Remember

Learning rate: how fast the model changesBatch size: how many examples at onceEpochs: how many times through all dataWrong settings break your AI completelyYou find the best numbers by trying

Memory trick

LEB: Learning rate is the SPEED. Epoch is how many LAPS. Batch is the GROUP SIZE. Slow speed, many laps, small groups = careful learning.

Words

learning rate LER-ning RATE
How much the model changes after each guess.
epoch EP-uk
One complete pass through all training data.
batch size BATCH size
How many examples the model learns from together.
model MOD-ul
The trained program that makes predictions.
training data TRAY-ning DAY-ta
Examples you show the AI to help it learn.
hyperparameter HY-per-PAR-uh-mee-ter
A setting you choose before training the model.

Check yourself

quick check

What does learning rate control?

Hint

Think: RATE = speed of change.

quick check

You train an AI to recognize cats. It learns too slowly. What could help?

Hint

Slow learning means the speed dial is too low.

think

If you use a very large batch size, what might happen to your training?

Show a good answer

The model learns less often per pass through data because it waits longer before updating. This can make training slower or less accurate.

Tell a friend

“AI learns using three dials: learning rate, batch size, and epochs. Get them wrong and it fails completely.”

People also ask

What happens if learning rate is too high?

The model changes too much too fast and misses the right answer. It becomes unstable and wrong.

Why does batch size matter?

Large batches make training faster but less accurate. Small batches are slower but more precise.

How many epochs do I need?

It depends on your data size and learning rate. Usually 10–100 epochs work. Try and adjust.