Skip to content

Three handwritten digits.
Which could fool you?

These three samples come from the MNIST test set. Look for where strokes meet and whether the loop at the top closes. Write down a digit for each image.

When a model confuses two digits, put the originals side by side. Describe the shape you think it’s missing, then look for other errors that would test your idea.

Explore Digit Recognizer
Original MNIST samples 28 × 28 pixels each
The handwritten digit in sample AA · Index 4
The handwritten digit in sample BB · Index 7
The handwritten digit in sample CC · Index 9
Reveal the original labels

A is a 4. B and C are both 9s. Compare their loops and the direction of the final stroke. The same digit can look quite different on paper.

Indices start at 0. Dark strokes here correspond to bright pixels in the originals. Data source and license

Same floor area,
different prices

Three homes in the Ames, Iowa, sales data each have exactly 1,504 square feet of aboveground living area. A rule based only on area would value them equally. How far apart were their sale prices?

Three sales in Ames, Iowa
RecordNeighborhoodBuiltSoldPrice (USD)
472Blmngtn20052009181,000
871CollgCr19962009203,000
1083Blmngtn20052008191,000

Record numbers refer to the Order column in the original data. Dean De Cock · Ames Housing

22,000 USD

The gap between the highest and lowest prices. First compare the two homes sold in the same year. Then compare the first and third, built in the same year in the same neighborhood. Which column would you want to look up next?

These three sales suggest questions about neighborhood, renovations and year of sale. To find out which features help predict prices, you’ll need to test them on more homes.

Gemma 4 edits code.
Did the fix work?

In the Developer Agent competition, the inputs are a codebase and a software issue. An agent has to understand the existing behavior, propose a change and run tests to check the fix.

Try the classroom example. Decide what the function should return for an empty list, reproduce the failure, then make one change. Run the two cases that already passed to check their results as well.

See the Gemma 4 evaluation

Repairing a mean function

In this exercise, return the mean when there are values. For an empty list, return None.

mean([2, 6])
Expect 4
mean([0])
Expect 0
mean([])
Raised ZeroDivisionError
See the fix and test results
def mean(values):
    if not values:
        return None
    return sum(values) / len(values)

Rerun the three inputs above. In order, they return 4.0, 0.0 and None. If you later change how empty lists are handled, update the tests too.