SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.20211 · 2023

Calibration by Distribution Matching: Trainable Kernel Calibration Metrics

arXiv · PDF · Open in the Atlas

Code that ran

11 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 11 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2310.20211.json · badge: /api/ran/2310.20211.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
kernel-calibration/kernel-calibration canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
FunctionStatusWhere it lives
data_loader Ran
ran; our contract draft was wrong, not the code
kernel-calibration/kernel-calibration/torchuq/dataset/imagenet.py
code served (permissive licence) · get_code("d8e925ee6db84c87")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.utils.data
import torchvision.transforms as transforms
import os
import tempfile
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create a temporary directory structure with minimal test images
temp_dir = tempfile.mkdtemp()
train_dir = os.path.join(temp_dir, 'train')
val_dir = os.path.join(temp_dir, 'val')

os.makedirs(os.path.join(train_dir, 'class_a'), exist_ok=True)
os.makedirs(os.path.join(val_dir, 'class_a'), exist_ok=True)

# Create minimal test images (smallest valid PNG)
def create_test_image(path):
    img_array = np.random.randint(0, 256, (64, 64, 3), dtype=np.uint8)
    img = Image.fromarray(img_array)
    img.save(path)

# Create a few test images
create_test_image(os.path.join(train_dir, 'class_a', 'img1.jpg'))
create_test_image(os.path.join(train_dir, 'class_a', 'img2.jpg'))
create_test_image(os.path.join(val_dir, 'class_a', 'img3.jpg'))
create_test_image(os.path.join(val_dir, 'class_a', 'img4.jpg'))

ARGS = {
    'data_dir': temp_dir,
    'batch_size': 2,
    'workers': 0,
    'pin_memory': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dirichlet_kernel Ran
ran; our contract draft was wrong, not the code
kernel-calibration/kernel-calibration/src/utils/ece_kde_utils.py
code served (permissive licence) · get_code("9bc246bd29ace132")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct z: a tensor of shape (batch_size, dim) with positive values
# The function uses z in division and log operations, so it needs positive values
z = torch.rand(2, 4) + 0.1  # shape (2, 4), values in [0.1, 1.1]

# bandwidth is a scalar float parameter
bandwidth = 0.1

ARGS = {
    "z": z,
    "bandwidth": bandwidth,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_kernel Ran
ran; our contract draft was wrong, not the code
kernel-calibration/kernel-calibration/src/utils/ece_kde_utils.py
code served (permissive licence) · get_code("2f2e94d3c1dd5aa5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct a tensor f with shape (2, 1) for the beta_kernel branch
# The function expects:
# - f.shape[1] to check if it's 1 (beta) or > 1 (dirichlet)
# - f.device to be accessible
# - Operations like unsqueeze, log, etc. to work on it
# - Values in (0, 1) range for log to work properly

f_beta = torch.rand(2, 1) * 0.8 + 0.1  # Shape (2, 1), values in [0.1, 0.9]

# Construct a tensor f with shape (2, 4) for the dirichlet_kernel branch
# The function expects:
# - f.shape[1] to be > 1
# - torch.log(f) to work (values must be positive)
# - torch.matmul to work with proper dimensions

f_dirichlet = torch.rand(2, 4) * 0.8 + 0.1  # Shape (2, 4), values in [0.1, 0.9]

bandwidth = 0.1

ARGS = {
    "f": f_beta,
    "bandwidth": bandwidth
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gmm_cdf Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kernel-calibration/kernel-calibration/src/utils/gmm_utils.py
code served (permissive licence) · get_code("4c0ab312755fbd43")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.distributions as D

torch.manual_seed(0)

# Define tensor dimensions
batch_size = 2
target_dim = 4
n_components = 3

# Create target tensor: (batch_size, target_dim)
target = torch.randn(batch_size, target_dim)

# Create mean tensor: (batch_size, target_dim, n_components)
mean = torch.randn(batch_size, target_dim, n_components)

# Create std tensor: (batch_size, target_dim, n_components)
std = torch.abs(torch.randn(batch_size, target_dim, n_components)) + 0.1

# Create prob tensor: (batch_size, target_dim, n_components)
# Must be valid probabilities (sum to 1 along last dimension)
prob_raw = torch.abs(torch.randn(batch_size, target_dim, n_components))
prob = prob_raw / prob_raw.sum(dim=-1, keepdim=True)

ARGS = {
    "target": target,
    "mean": mean,
    "std": std,
    "prob": prob
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gmm_params_to_dist Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kernel-calibration/kernel-calibration/src/utils/gmm_utils.py
code served (permissive licence) · get_code("a99b14e0722ef72b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned MixtureSameFamily. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.distributions as D

torch.manual_seed(0)

batch_size = 2
target_dim = 4
n_components = 3

mean = torch.randn(batch_size, target_dim, n_components)
std = torch.randn(batch_size, target_dim, n_components).abs() + 0.1
prob = torch.softmax(torch.randn(batch_size, target_dim, n_components), dim=-1)

ARGS = {
    "mean": mean,
    "std": std,
    "prob": prob,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MixtureSameFamily — a MixtureSameFamily output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MixtureSameFamily output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
loss_fn_1 Ran
ran; our contract draft was wrong, not the code
kernel-calibration/kernel-calibration/src/metrics/decision_losses.py
code served (permissive licence) · get_code("fd941cc0cae06a27")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - loss_fn_1(a, y) compares y.sign() == a
# - Both a and y need .sign() method or y needs it, and a needs to support ==
# - Result is multiplied by 1.0 and returned
# - y.sign() returns sign of y (-1, 0, or 1)
# - a should be a tensor with same shape as y for element-wise comparison

# Create small tensors with distinct shapes
a = torch.randn(2, 4)  # batch of 2, dim 4
y = torch.randn(2, 4)  # same shape for broadcasting in comparison

ARGS = {
    "a": a,
    "y": y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mean_no_diag Ran
ran; our contract draft was wrong, not the code
kernel-calibration/kernel-calibration/src/metrics/losses.py
code served (permissive licence) · get_code("42cdc115301b8340")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct a small square matrix for the function
# The function expects a 2D square tensor (A.dim() == 2 and A.shape[0] == A.shape[1])
A = torch.randn(4, 4)

ARGS = {
    "A": A
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rbf_kernel Ran
ran; our contract draft was wrong, not the code
kernel-calibration/kernel-calibration/src/metrics/losses.py
code served (permissive licence) · get_code("cc30d0408372ef42")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create two small tensors with distinct shapes
# u: batch of 2 points in 4D space
u = torch.randn(2, 4)

# v: batch of 3 points in 4D space (distinct batch size)
v = torch.randn(3, 4)

# bandwidth parameter
bandwidth = 1.0

ARGS = {
    "u": u,
    "v": v,
    "bandwidth": bandwidth,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
tanh_kernel Ran
ran; our contract draft was wrong, not the code
kernel-calibration/kernel-calibration/src/metrics/losses.py
code served (permissive licence) · get_code("c2a7bb7f129c023a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyze function usage:
# - u: torch.Tensor, used with .unsqueeze(1) and torch.tanh()
# - v: torch.Tensor, used with torch.tanh()
# - bandwidth: int/float with default=1, not actually used in the function body
# 
# Operations:
# - torch.tanh(v) - v can be any shape
# - torch.tanh(u).unsqueeze(1) - u is unsqueezed at dim 1
# - multiplication and .squeeze(2) suggest broadcasting
#
# For the math to work:
# - tanh(v) produces shape matching v
# - tanh(u).unsqueeze(1) adds a dimension at position 1
# - They're multiplied (broadcasting)
# - .squeeze(2) removes dimension 2
#
# Let's use u shape (batch=2, dim=4) and v shape (batch=2, seq=3, dim=4)
# tanh(u) -> (2, 4)
# tanh(u).unsqueeze(1) -> (2, 1, 4)
# tanh(v) -> (2, 3, 4)
# multiply -> (2, 3, 4) via broadcasting
# squeeze(2) -> (2, 3)

u = torch.randn(2, 4)
v = torch.randn(2, 3, 4)
bandwidth = 1

ARGS = {
    "u": u,
    "v": v,
    "bandwidth": bandwidth
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
train_dataset Ran
ran; our contract draft was wrong, not the code
kernel-calibration/kernel-calibration/torchuq/dataset/imagenet.py
code served (permissive licence) · get_code("d01f287e5bdb423e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ImageFolder. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torchvision.transforms as transforms
import torchvision.datasets as datasets
import os
import tempfile
from PIL import Image

torch.manual_seed(0)

# Create a temporary directory structure with dummy images
temp_dir = tempfile.mkdtemp()
train_dir = os.path.join(temp_dir, 'train')
os.makedirs(train_dir, exist_ok=True)

# Create a dummy class directory and add some dummy images
class_dir = os.path.join(train_dir, 'class_0')
os.makedirs(class_dir, exist_ok=True)

# Create small dummy image files
for i in range(2):
    img = Image.new('RGB', (256, 256), color=(73, 109, 137))
    img.save(os.path.join(class_dir, f'image_{i}.jpg'))

ARGS = {
    'data_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ImageFolder — a ImageFolder output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
val_dataset Ran
ran; our contract draft was wrong, not the code
kernel-calibration/kernel-calibration/torchuq/dataset/imagenet.py
code served (permissive licence) · get_code("4b7a8ee9ac4d3903")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ImageFolder. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torchvision.transforms as transforms
import torchvision.datasets as datasets
import os
import tempfile
from PIL import Image

torch.manual_seed(0)

# Create a temporary directory structure with dummy image data
temp_dir = tempfile.mkdtemp()
val_dir = os.path.join(temp_dir, 'val')
os.makedirs(val_dir, exist_ok=True)

# Create a dummy class directory with dummy images
class_dir = os.path.join(val_dir, 'dummy_class')
os.makedirs(class_dir, exist_ok=True)

# Create a small dummy image file
dummy_img = Image.new('RGB', (256, 256), color=(73, 109, 137))
dummy_img.save(os.path.join(class_dir, 'dummy_image.jpg'))

ARGS = {
    'data_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ImageFolder — a ImageFolder output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
beta_kernel Not yet run
unverified (harvested, no recorded run)
kernel-calibration/kernel-calibration/src/utils/ece_kde_utils.py
code served (permissive licence) · get_code("1229a437a6fcfedf")
How it ran

no invocation recorded.

gmm_cdf_dist Not yet run
unverified (harvested, no recorded run)
kernel-calibration/kernel-calibration/src/utils/gmm_utils.py
code served (permissive licence) · get_code("81eeafdfab05075d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
beta_kernel 1 other paper
1 dated earlier
2210.07810 (2022-10)
A Consistent and Differentiable L p Canonical Calibration Error Estimator
dirichlet_kernel 1 other paper
1 dated earlier
2210.07810 (2022-10)
A Consistent and Differentiable L p Canonical Calibration Error Estimator

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Calibration ensures that probabilistic forecasts meaningfully capture uncertainty by requiring that predicted probabilities align with empirical frequencies. However, many existing calibration methods are specialized for post-hoc recalibration, which can worsen the sharpness of forecasts. Drawing on the insight that calibration can be viewed as a distribution matching task, we introduce kernel-based calibration metrics that unify and generalize popular forms of calibration for both classification and regression. These metrics admit differentiable sample estimates, making it easy to incorporate a calibration objective into empirical risk minimization. Furthermore, we provide intuitive mechanisms to tailor calibration metrics to a decision task, and enforce accurate loss estimation and no regret decisions. Our empirical evaluation demonstrates that employing these metrics as regularizers enhances calibration, sharpness, and decision-making across a range of regression and classification tasks, outperforming methods relying solely on post-hoc recalibration.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2310.20211")
get_code_for_paper("2310.20211")
have("2310.20211")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2310.20211.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2310.20211.svg)](https://syntology.ai/paper/2310.20211)

Connect an agent — have() is free.