Syllabus Lesson 117 of 141 · Judgment Mirror
Judgment Mirror

Write your principles

Why it matters Most people can list principles they admire. Fewer can list the ones they actually choose by. Your round 1 picks know the difference.

The lab kit has a fixed list of principles. Each option in the 12 round 1 pairs honours some of them.

from creative import mirror
for key, text in mirror.PRINCIPLES.items():
    print(key, "-", text)

mirror.predict(["fail-early"], "p3")   # "A", "B", or None on a tie

predict picks the option that honours more of your principles, and says None when they do not separate the two. mirror.prediction_score(principles, picks) returns (right, decided): of the pairs your principles decide, how many match your real pick.

Choose 2 to 4 principles you believe you hold. Choose before you run the score, and do not tune the list to raise it afterwards: a list chosen to fit the answers predicts nothing. Your round 1 picks are read from your First picks draft.

Recap Pick your principles, then see how many of your own choices they explain, and which they miss.

Your turn

Assign principles: 2 to 4 keys of mirror.PRINCIPLES. Read your round 1 picks with context.value_in("c-map-the-default/first-picks", "picks"). Write misses(principles, picks): the pair ids (in order p1 to p12, ignoring unknown ids, accepting lower-case picks) where mirror.predict gives a letter that differs from the pick; ties are skipped. Set score = mirror.prediction_score(principles, picks) and print it as "right of decided", for example "5 of 8", then print your misses.

Spotted a problem in this lesson? Report it · Ask about this lesson

This exercise opens soon

Finish the lesson before it and this one unlocks. The whole course is free, no account needed, and you can read this lesson right now.