MATH 170 · What type of learning is it? · Sandwich Classifier Activities 1 & 2
You are the machine classification
You are the AI. You have twenty rows of numbers — four
features, no meanings — and a rule to write. The goal is to classify: healthy or not healthy.
Build the rule, watch what it flags, then reveal what you were actually looking at, one pass at
a time.
#
item
Feature 1
Feature 2
Feature 3
Feature 4
Healthy?
flag
match
The worksheet's 20 items. Rows the rule flags slide to the top — the flag is the rule's doing, nothing else.
The five mystery sandwiches
sandwich
Calories
Fat (g)
Fiber
Vegetarian
rule says
New sandwiches the rule has never seen. No labels exist here — the rule can only stamp what it would say.
clause 1 — AND
The rule is an AND of its clauses: a row is flagged
only when every clause below is true of it. With one clause there is nothing to combine yet —
add a second and both must hold.
AND
two tests joined by AND — a row is flagged only if it passes both
clause 2 — AND
Try: after the reveal, rule fat (g) < 20 — a fine score. Then look at the last mystery sandwich.