Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

System One Models with Jev

Free · sign in to start and track progress

1 · Decisions, not text

  • 1What a System One model is
  • 2Calibrated probabilities

2 · The Jev API

  • 3Your first Jev request
  • 4Choice, Score and Noul
  • 5State and decomposition

3 · Building systems

  • 6Routing on confidence

    Exercise answers

    • Answer: Build a cost-derived confidence router
    • Answer: Conformal prediction sets for triage
  • 7Jev alongside LLMs
  • 8Evaluating Jev on your data
CapstoneTriage a busy inbox with JevReference implementation

Module 3 · Building systems · Lesson 6

Routing on confidence

Turning Jev's probabilities into act, confirm and escalate decisions, with thresholds derived from the cost of each kind of error, per-action gates, intent routing, composite scores, and the research on selective prediction, deferral and conformal sets.

60 min 2 videos 3 exercises 7-question quiz Answers
Setup for the exercises:Python with uvJev, or its local stand-inInstall Claude Code

By the end of this lesson you can

  • Derive an act-or-escalate threshold from the cost of a wrong action and the cost of review, and extend it to three bands
  • Convert between a Choice answer's confidence and its top probability, and explain which one an expected-cost rule needs
  • Design a router with a global confidence floor, per-action thresholds and hard rules that no probability can override
  • Read a risk–coverage table and choose a threshold that meets a target error rate on covered items
  • Explain what learning to defer and conformal prediction sets add to plain thresholding, and compute a conformal set by hand

On this page

  • Intuition: a trainee with a good sense of their own doubt
  • Thresholds from the cost of errors
  • Two options: act or escalate
  • Worked numbers
  • Three bands: adding a confirmation step
  • Which number is p?
  • A global floor plus per-action thresholds
  • Intent routing: code, a specialist LLM, or a person
  • Composite scores with weights in code
  • Selective prediction: the risk–coverage trade-off
  • Learning to defer: who gets the hard cases?
  • Conformal prediction: sets instead of single answers
  • Worked example
  • Misconceptions and limits
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: a trainee with a good sense of their own doubt
  2. 02Thresholds from the cost of errors
  3. 03A global floor plus per-action thresholds
  4. 04Intent routing: code, a specialist LLM, or a person
  5. 05Composite scores with weights in code
  6. 06Selective prediction: the risk–coverage trade-off
  7. 07Learning to defer: who gets the hard cases?
  8. 08Conformal prediction: sets instead of single answers
  9. 09Misconceptions and limits
  10. 10Connections
  11. 11Summary

Sources & further reading

  • Selective Classification for Deep Neural NetworksPaper · Geifman, El-Yaniv · 2017NeurIPS 2017. The foundational modern treatment of a classifier that may abstain, with the risk–coverage trade-off and a method for choosing a threshold that guarantees a target risk with high probability. Read sections 1–3.
  • A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty QuantificationPaper · Angelopoulos, Bates · 2021The standard practical introduction to conformal prediction. Section 1 gives the classification recipe this lesson works by hand, with code; section 3 explains why coverage is only marginal.
  • Consistent Estimators for Learning to Defer to an ExpertPaper · Mozannar, Sontag · 2020ICML 2020. Treats "hand this to a person" as a learned decision that depends on where the expert is better than the model, not only on where the model is unsure. Read the introduction and section 3.
  • Predict Responsibly: Improving Fairness and Accuracy by Learning to DeferPaper · Madras, Pitassi, Zemel · 2018NeurIPS 2018. The paper that framed deferral as distinct from simple rejection; useful for its clear argument that an abstaining model ignores who receives the deferred case.
  • Confidence-gated routingDocs · TypeSafe AIThe voice-banking pattern (a 0.6 floor, then per-action thresholds) that this lesson adapts to a conveyancing inbox.
  • Intent routing and composite scoringDocs · TypeSafe AIRouting to deterministic code, a specialist LLM or a human from one intent Choice plus a complexity Score. The companion page on composite scoring (/patterns/composite-scoring) has the weighted résumé example.
  • ConfidenceDocs · TypeSafe AIThe section "Thresholds scale with risk", and the alternatives to the built-in confidence (top probability, top-to-second ratio).
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 11 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks