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

    Exercise answers

    • Answer: Build a calibration toolkit and test it on two models
    • Answer: Repair an overconfident model with temperature scaling

2 · The Jev API

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

3 · Building systems

  • 6Routing on confidence
  • 7Jev alongside LLMs
  • 8Evaluating Jev on your data
CapstoneTriage a busy inbox with JevReference implementation

Module 1 · Decisions, not text · Lesson 2

Calibrated probabilities

What it means for a model's probabilities to be calibrated, how to measure it with reliability diagrams, ECE and the Brier score, why modern networks and LLMs are often overconfident, and how Jev's confidence values are computed from its probabilities.

80 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

  • Define calibration as a property of groups of predictions and distinguish it from accuracy and discrimination
  • Build a reliability diagram and compute expected calibration error and the Brier score by hand for a small set of predictions
  • Explain why modern neural networks and LLMs' verbalised confidence tend to be overconfident, and what temperature scaling does
  • Compute Jev's confidence for Noul, Choice and Score answers from their probabilities, and explain why confidence is not correctness

On this page

  • The forecaster's promise
  • Calibration, formally
  • Reliability diagrams
  • Expected calibration error
  • The Brier score
  • A worked example
  • Why models are miscalibrated
  • Modern neural networks
  • Language models
  • Jev's confidence values
  • Noul
  • Choice
  • Score
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01The forecaster's promise
  2. 02Calibration, formally
  3. 03Reliability diagrams
  4. 04Expected calibration error
  5. 05The Brier score
  6. 06A worked example
  7. 07Why models are miscalibrated
  8. 08Jev's confidence values
  9. 09Connections
  10. 10Summary

Sources & further reading

  • On Calibration of Modern Neural NetworksPaper · Guo, Pleiss, Sun, Weinberger · 2017The paper that made reliability diagrams, ECE and temperature scaling standard. Read Sections 2 (definitions and ECE), 3 (why modern nets are overconfident) and 4.2 (temperature scaling).
  • Language Models (Mostly) Know What They KnowPaper · Kadavath et al. · Anthropic · 2022Large pretrained LLMs are well calibrated on multiple-choice questions in the right format; Section 3.3 shows an RLHF policy badly miscalibrated and largely repaired by a single temperature of 2.5.
  • Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMsPaper · Xiong et al. · 2024ICLR 2024. Benchmarks verbalised confidence, sampling consistency and their combinations across five LLMs; finds verbalised confidence overconfident. The best evidence for not trusting a number an LLM writes.
  • Revisiting the Calibration of Modern Neural NetworksPaper · Minderer et al. · Google Research · 2021NeurIPS 2021. A corrective to the idea that newer models are always worse calibrated: recent non-convolutional image models are among the best calibrated, and architecture matters. Read it to avoid over-generalising Guo et al.
  • ConfidenceDocs · TypeSafe AIThe exact Noul, Choice and Score confidence formulas with worked examples, and the advice to tune thresholds on your own data.
  • NoulDocs · TypeSafe AIHow to read a Noul probability, and the 0.7 / 0.3 starting thresholds with a review band in between.
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.

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