Awesome Testing

Learning lesson 02 · Turn data into geometry

How can a list of features become a direction, score, and boundary?

examplepredictionlossgradientchanged parameters

01 · Smallest useful mechanism

A vector turns one example into a point with measurable direction and distance.

A feature vector is an ordered list such as [size, brightness]. A weight vector is another ordered list in the same coordinate system. Multiplying matching coordinates and summing them produces a dot product. Add a bias and the scalar score becomes a linear decision. Rotating or scaling the weight vector changes which evidence the model treats as important.

The dot product combines input features with a weight direction; its sign and magnitude determine which side of a linear boundary the example occupies.

02 · Experiment

Test the prediction

Calculate by hand · two-dimensional vectors

The small coordinates make every dot product and decision inspectable. Real neural vectors use many more dimensions but obey the same shape rules.

Weight direction

Rotate the decision.

The green arrow is w. The zero-score boundary stays perpendicular to it.

ABCDx₁x₂
ExampleVector xw₁x₁w₂x₂+ biasscoreclass
A[0.8, 0.2]0.64-0.080.000.56+1
B[0.3, 0.9]0.24-0.360.00-0.12−1
C[-0.7, 0.5]-0.56-0.200.00-0.76−1
D[-0.4, -0.8]-0.320.320.000.00−1

03 · Reason from evidence

A classifier changes many decisions after a preprocessing release, although its stored weights are byte-for-byte identical.

Your brief: Audit the representation contract before blaming the model. Explain how unchanged parameters can produce different scores.

Evidence your answer should use

  • Feature names and coordinate order before and after the release
  • Units, normalization constants, and missing-value rules
  • One hand-calculated dot product from each pipeline
  • The bias and the zero-score boundary used at inference

There is no reveal button here. A strong response names the claim, the evidence that would test it, and what the evidence cannot establish.

Your learning artifact

Write the argument you would defend

Stored only in this browser. No account required; course reset does not delete it.

04 · Check your understanding

What must match before two vectors can be combined with a dot product?

Optional referenceDeep dive / reference chapterOpen the complete essay, diagrams, mathematics, exercises, glossary, and sources when you want more depth.

Next: A score becomes useful for learning only after we define how costly a prediction should be.