Page 7 of 8~104 min topic

Prediction: your first ML idea

Safe demo rules for your toy model

Before you show the mini game, set gates: privacy, honesty about limits, and no overclaiming.

~13 min this pageSafety and operations

1Learn the idea

Read

Gates, not jargon

Skip production-ops buzzwords. Use school-clear gates:

  1. Don’t share real classmate messages — use made-up practice texts or sports scores you invented.
  2. Don’t claim your toy model works on all phones — you only proved five fixture rounds.
  3. Write what you proved vs what you didn’t — perfect accuracy here is not a worldwide SLA.
  4. Don’t hide false alarms — always show TP/FP/TN/FN with accuracy.

If any gate fails, the demo stays offline until fixed.

Read

Keep the proven fixture visible

Your evidence for “the math works on this practice set” stays:

truth = [1, 0, 1, 1, 0]
scores = [0.8, 0.3, 0.6, 0.9, 0.2]
threshold = 0.5
preds = [int(score >= threshold) for score in scores]

pairs = list(zip(truth, preds))
tp = pairs.count((1, 1)); fp = pairs.count((0, 1))
tn = pairs.count((0, 0)); fn = pairs.count((1, 0))
accuracy = (tp + tn) / len(pairs)
print(preds, f"accuracy={accuracy:.2f}", tp, fp, tn, fn)

Expected evidence:

[1, 0, 1, 1, 0] accuracy=1.00 3 0 2 0

That line may appear on the demo board under a sticky note: Proved on n=5 practice rounds only.

Read

Honesty script for the audience

Practice saying: “This toy turns scores into yes/no with a cutoff. On five labeled rounds it matched every guess. It does not prove it catches every spam text at school or every free throw in the gym.”

If someone asks “So it’s ready for the school app?” your gate answer is: “Not with n=5 — that would be overclaiming.”

Read

Owner and stop switch

Name who can stop the demo (you + a teacher/club lead). Name what you delete after demo day (any real messages if someone slipped). Keep rollback simple: close the laptop, put the poster away, revert to the fixture-only notebook.

Go deeper

Before you start

Why this matters

You have club demo day. Someone wants to paste real classmate group-chat messages into the spam toy. Someone else wants the poster to say “Works on all phones — 100% accurate!” Write two safe demo rules that stop both moves. Keep the tone firm and friendly.

Check your understanding

Page assessment

Answer from memory. Completion is saved from this evidence, not from opening the next page.

1. Did you ban real classmate messages from the demo?
2. Did you refuse “works on all phones” language?
3. Is proved vs unproved written where the audience can see it?
4. Who can stop the demo, and what gets rolled back?

All responses are required.