Ross ROSS = Recommend OSS · open-source software intelligence for agents

gpleiss/temperature_scaling

A simple way to calibrate your neural network. observed · 2026-08-28

github.com/gpleiss/temperature_scaling · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

47/100

  • Activity 33
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 3317
  • days_rel: n/a
  • days_push: 403
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1175 stars · 164 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A small PyTorch module implementing temperature scaling, a post-processing technique that calibrates the overconfident probability outputs of trained neural networks. It learns a scalar temperature parameter on a validation set to minimize negative log-likelihood.

Use cases

  • calibrate neural network confidence scores
  • fix overconfident softmax probabilities in pytorch
  • implement temperature scaling for a trained classifier
  • reduce expected calibration error of a model
  • make model probabilities match true accuracy

When to choose

  • you need a minimal, copy-paste implementation of temperature scaling for a PyTorch model
  • you want to reproduce the 'On Calibration of Modern Neural Networks' paper
  • you're okay maintaining the code yourself since it's a single small module

When to avoid

  • you need a maintained, packaged calibration library (the repo is explicitly unmaintained and targets PyTorch 0.3)
  • you need calibration methods beyond temperature scaling
  • you're not using PyTorch

Facets

library · maturity abandoned

machine-learning deep-learning deep-learning machine-learning python temperature-scaling model-calibration pytorch confidence-calibration post-processing

1 source

Member repositories

RepositoryRoleHealth v2
gpleiss/temperature_scalingmain47

For agents

markdown · JSON · MCP: product_card(name="gpleiss/temperature_scaling")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem