{"adoption": {"forks": 164, "observed_at": "2026-08-28T04:03:52.411091+00:00", "stars": 1175}, "canonical_url": "https://ross.abutalabs.com/products/temperature_scaling", "card": {"archived": false, "artifact_type": "library", "description": "A simple way to calibrate your neural network.", "domain": ["deep-learning", "machine-learning"], "enriched": true, "function": ["machine-learning", "deep-learning"], "health_score": 40, "homepage": null, "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "abandoned", "member_repos": ["gpleiss/temperature_scaling"], "name": "gpleiss/temperature_scaling", "platform": ["python"], "pushed_at": "2025-07-26T03:46:19+00:00", "repo": "gpleiss/temperature_scaling", "stars": 1175, "tags": ["temperature-scaling", "model-calibration", "pytorch", "confidence-calibration", "post-processing"], "topics": ["deep-learning", "calibration"], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/temperature_scaling", "repo": "gpleiss/temperature_scaling", "role": "main", "score": 47}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:52.411091+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:27:05.686238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e252e7ef79bb2b283409f498242589fe62ff1160ec13da435b625fa523802a53", "fetched_at": "2026-08-28T04:03:52.411091+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gpleiss/temperature_scaling"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:52.411091+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:27:05.686238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e252e7ef79bb2b283409f498242589fe62ff1160ec13da435b625fa523802a53", "fetched_at": "2026-08-28T04:03:52.411091+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gpleiss/temperature_scaling"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:27:05.686238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e252e7ef79bb2b283409f498242589fe62ff1160ec13da435b625fa523802a53", "fetched_at": "2026-08-28T04:03:52.411091+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gpleiss/temperature_scaling"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:03:52.411091+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:52.411091+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:52.411091+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:27:05.686238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e252e7ef79bb2b283409f498242589fe62ff1160ec13da435b625fa523802a53", "fetched_at": "2026-08-28T04:03:52.411091+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gpleiss/temperature_scaling"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:52.411091+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:52.411091+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:27:05.686238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e252e7ef79bb2b283409f498242589fe62ff1160ec13da435b625fa523802a53", "fetched_at": "2026-08-28T04:03:52.411091+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gpleiss/temperature_scaling"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:52.411091+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:52.411091+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:52.411091+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:27:05.686238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e252e7ef79bb2b283409f498242589fe62ff1160ec13da435b625fa523802a53", "fetched_at": "2026-08-28T04:03:52.411091+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gpleiss/temperature_scaling"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:52.411091+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:52.411091+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:27:05.686238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e252e7ef79bb2b283409f498242589fe62ff1160ec13da435b625fa523802a53", "fetched_at": "2026-08-28T04:03:52.411091+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gpleiss/temperature_scaling"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:27:05.686238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e252e7ef79bb2b283409f498242589fe62ff1160ec13da435b625fa523802a53", "fetched_at": "2026-08-28T04:03:52.411091+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gpleiss/temperature_scaling"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:27:05.686238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e252e7ef79bb2b283409f498242589fe62ff1160ec13da435b625fa523802a53", "fetched_at": "2026-08-28T04:03:52.411091+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gpleiss/temperature_scaling"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:27:05.686238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e252e7ef79bb2b283409f498242589fe62ff1160ec13da435b625fa523802a53", "fetched_at": "2026-08-28T04:03:52.411091+00:00", "kind": "readme", "missing": false, "url": "https://github.com/gpleiss/temperature_scaling"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 33, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3317, "days_push": 403, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 47, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}