1The Riddle
2Nock & Aim
3The Trials
4Archer's Journal
5Fletcher's Workshop
6New Targets
Chapter 1 Β· The Riddle

🎯 Finding the Right Direction

In many situations, we need to find a value or make a decision that gives us the best possible result, but the right choice is not known beforehand. We may be adjusting a recipe, tuning a setting, aiming at a target, or trying to improve a prediction.

The challenge is that we cannot always know in advance which choice will give us the best result. We have to make a choice, observe what happens, and determine whether we are moving closer to the result we want.

Let's play a game where you'll make a series of choices to move closer to the best possible result. At each step, observe what happens and decide which direction to move next.

Let's see what that looks like πŸ‘‡

Chapter 2 Β· Nock & Aim

🏹 The Blindfolded Archer

You're competing in the Royal Archery Trial, blindfolded. Somewhere far out on the field is a hidden target. You can't see it, and no one will ever tell you exactly where it is. After each shot, all you'll learn is how far you missed by, and whether you went too far or not far enough.

🚧 Rule: you're never told the correct power, only how far off you were
Chapter 3 Β· The Trials

Find the Hidden Target

Choose a power, release the arrow, and use your miss to guess better next time.

🎯 The target is hidden far out on this field
🏹 Shooting line

Set your power and release your first arrow, every shot teaches you something.

Power 50
πŸ’‘ The sign tells you the direction: a "+" means you overshot (lower the power), a "βˆ’" means you're short (raise the power). Use that to adjust, and compare this error's size to your last one to judge how big a step to take.
Closeness to target0%
Attempts0
Best Error-
Improvements0
Overshoots0
πŸ“œ Attempt History
πŸ“‰ Error Over Time

πŸ€” How are you getting closer to the target?

πŸŽ―πŸŽ‰πŸŽ―

Bullseye in 0 attempts!

Look at how your error shrank shot after shot:

Chapter 4 Β· The Archer's Journal

What did you notice?

Sit with these for a moment. There's no single correct wording, just think them through in your own words.

Q1 . After a missed shot, how did you decide what to try next?
Q2 Β· When a shot went past or fell short of the target, how did that help you decide how to adjust your next shot?
Q3 Β· How did your strategy change from your first few shots to your later shots?
Q4 Β· What was your most important learning from this exercise?
Q5 Β· If you had to play the game again with a new hidden target, what would you do differently in your first few attempts?
Chapter 5 Β· The Fletcher's Workshop

How the search really worked

Tap a card to open it up and see the idea behind what you just did.

🎯 Replay Your Shots

Press play to watch your own attempts line up, in order, and see exactly where each adjustment came from.

Press play to begin.

What you just did, shoot, measure the miss, adjust, repeat, is exactly how machines learn. This strategy is called Gradient Descent. Here's the mapping:

You (the archer)β†’ the Optimizer
Bow power→ the Parameter being tuned
Distance you missed by→ the Loss (error)
Warmer / colder feedback→ the Gradient (which direction to adjust)
Nudging the power each shot→ a Gradient Descent update step
The blindfold→ never seeing the loss function directly, only local feedback
🧭The Optimizer+
That's you, the archer. In machine learning, the optimizer is the part of the system that keeps adjusting a value, shot after shot, trying to get closer to the best result.
🎚️The Parameter+
Bow power was the one number you kept changing. In a real model, parameters are the internal settings the system tunes until its predictions get better.
πŸ“The Loss (Error)+
The distance you missed by is exactly what's called loss, or error. It's the single number that tells the system how wrong its current guess still is.
πŸ”₯The Gradient+
Warmer and colder feedback was really telling you a direction. The gradient is that same idea, it points toward which way to adjust next to reduce the error.
πŸ‘£The Learning Rate+
Your Adjust +/βˆ’ buttons controlled step size. Big steps close the gap fast but risk overshooting, small steps are safer but slower. That trade-off is the learning rate.
πŸ”Iterating to Convergence+
One shot was never going to be enough. Repeating shoot, measure, adjust, again and again, is how both archers and algorithms converge on the answer.
πŸ™ˆThe Blindfold+
You never saw the target directly, only the size and direction of your miss. Most real optimization works exactly like this: local feedback only, never the full picture.
← Back to CSE Concept Laboratory Chapter 6 Β· New Targets

Put the idea to the test

New situations to think through using what you just discovered.

1 Β· Route PlanningA delivery system keeps adjusting a route to reduce the total travel time. After each change, the travel time improves, but sometimes the system changes the route too much and becomes worse. How could the idea of making smaller changes near a good solution help?
2 Β· Image ProcessingAn image-editing system is trying to adjust several settings to make a blurry image clearer. Some changes improve the image while others make it worse. How could it use the results of previous changes to decide what to change next?
3 Β· Recommendation SystemsA movie recommendation system wants to improve how accurately it predicts which movies a user will like. It can change several settings, but changing them randomly does not consistently improve the predictions. How could a step-by-step improvement approach help?
4 Β· RoboticsA robot arm needs to move its hand to a specific position. Its first movements are far from the target, but later movements get closer. Why might large adjustments be useful at first and smaller adjustments be better near the target?
5 Β· Business PricingA company wants to find a product price that gives the highest profit. Changing the price changes the profit, but the best price is not known beforehand. How could the company gradually adjust the price to search for a better one?
6 Β· Process OrderingArrange these actions in the correct order: measure the error, calculate the direction of change, update the parameters, and repeat the process. Explain why your order makes sense?
7 Β· Concept ApplicationA model keeps making predictions that are far from the correct answers. How would Gradient Descent help the model improve over repeated updates?
8 Β· Compare & ContrastTwo training methods are available: one uses the entire dataset before making an update, while the other uses one example at a time. How would their behavior differ during training?