SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1805.10915 · 2018

Dirichlet-based Gaussian Processes for Large-scale Calibrated Classification

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 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 8 have no contract verdict; 0 failures of our instrument; 0 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/1805.10915.json · badge: /api/ran/1805.10915.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
dmilios/dirichletGPC canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
calibration_test Ran
ran on a synthesized input
dmilios/dirichletGPC/src/evaluation.py
code served (permissive licence) · get_code("6d2d658a76c9388b")
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. 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 numpy as np

# Construct valid arguments for calibration_test
# The function expects:
# - p: predicted probabilities, either 1D array or 2D array (batch_size, num_classes)
# - y: true labels, will be flattened
# - nbins: number of bins for calibration (default 10)

# Create a simple test case with 2D probabilities (multiclass predictions)
np.random.seed(0)
batch_size = 8
num_classes = 4

# p: predicted probabilities - shape (batch_size, num_classes)
# Each row should sum to ~1 (probability distribution)
p = np.random.dirichlet(np.ones(num_classes), batch_size)

# y: true labels - shape (batch_size,) with class indices 0 to num_classes-1
y = np.random.randint(0, num_classes, batch_size)

# nbins: number of bins
nbins = 10

ARGS = {
    "p": p,
    "y": y,
    "nbins": nbins
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple 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
get_dataset_path Ran
ran on a synthesized input
dmilios/dirichletGPC/src/utilities.py
code served (permissive licence) · get_code("1fe44eff6534cc57")
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 str. 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 os
from pathlib import Path
from unittest.mock import patch, MagicMock

# Create mock directories to avoid FileNotFoundError
mock_dirs = {
    os.path.join('datasets', 'bin_classif', 'test_dataset'): True,
    os.path.join('datasets', 'mult_classif'): True,
}

def mock_is_dir(self):
    return str(self) in mock_dirs or any(str(self).startswith(d) for d in mock_dirs)

# Patch Path.is_dir to return True for our mock dataset
original_is_dir = Path.is_dir
Path.is_dir = mock_is_dir

ARGS = {
    'dataset': 'test_dataset'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_option_alphaEpsilon Ran
ran on a synthesized input
dmilios/dirichletGPC/src/utilities.py
code served (permissive licence) · get_code("508c872c5641d0a8")
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 float, 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
import torch.nn as nn

torch.manual_seed(0)

# The function takes a dataset parameter and checks if it matches certain strings
# It returns different alpha_epsilon values based on the dataset name
# No complex objects or methods are called on the dataset, just string comparisons

ARGS = {
    "dataset": "CovertypeBinary"
}
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 float, 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
get_option_inducing Ran
ran on a synthesized input
dmilios/dirichletGPC/src/utilities.py
code served (permissive licence) · get_code("45104fd607379fbf")
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 int, ndim 0, dtype family int, 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
import numpy as np

# The function takes a dataset name (string) and returns the number of inducing points
# We need to provide valid dataset names that the function recognizes

ARGS = {
    'dataset': 'EEG'
}
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 int, ndim 0, dtype family int, 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
load_split Ran
ran on a synthesized input
dmilios/dirichletGPC/src/datasets.py
code served (permissive licence) · get_code("073f740b6b0dcb94")
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. 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 os
import tempfile
import numpy as np

# Create a temporary directory structure with the required splits
temp_dir = tempfile.mkdtemp()
splits_dir = os.path.join(temp_dir, 'splits')
os.makedirs(splits_dir, exist_ok=True)

# Create train01.txt with sample data (5 samples, 4 features + 1 label)
train_data = np.random.rand(5, 5)
train_data[:, -1] = np.random.randint(0, 2, 5)  # binary labels
np.savetxt(os.path.join(splits_dir, 'train01.txt'), train_data, delimiter=',')

# Create test01.txt with sample data (3 samples, 4 features + 1 label)
test_data = np.random.rand(3, 5)
test_data[:, -1] = np.random.randint(0, 2, 3)  # binary labels
np.savetxt(os.path.join(splits_dir, 'test01.txt'), test_data, delimiter=',')

ARGS = {
    'path': temp_dir,
    'split_idx': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple 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
nll Ran
ran on a synthesized input
dmilios/dirichletGPC/src/evaluation.py
code served (permissive licence) · get_code("3c6005ebef9dd7e9")
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 float64, ndim 0, 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 numpy as np

# p: probability array, can be 1D/2D
# For 1D or shape (n, 1): treated as binary probabilities
# For 2D with multiple columns: treated as class probabilities
# y: labels array (will be flattened and converted to int)

# Create a valid probability array (2D, multi-class case)
# Shape: (4, 3) means 4 samples, 3 classes
p = np.array([
    [0.7, 0.2, 0.1],
    [0.1, 0.8, 0.1],
    [0.2, 0.3, 0.5],
    [0.3, 0.3, 0.4]
], dtype=np.float64)

# Create corresponding labels (class indices 0-2)
y = np.array([0, 1, 2, 1], dtype=np.int32)

ARGS = {
    "p": p,
    "y": y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
normalise_oneminusone Ran
ran on a synthesized input
dmilios/dirichletGPC/src/datasets.py
code served (permissive licence) · get_code("2b7ec5a6948ab9fd")
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. 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 numpy as np

# Create small sample data for X and Xtest
np.random.seed(0)

# X: training data with shape (2, 4) - 2 samples, 4 features
X = np.random.randn(2, 4) * 10 + 5

# Xtest: test data with shape (3, 4) - 3 samples, 4 features
Xtest = np.random.randn(3, 4) * 10 + 5

ARGS = {
    "X": X,
    "Xtest": Xtest,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple 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
normalise_unitvar Ran
ran on a synthesized input
dmilios/dirichletGPC/src/datasets.py
code served (permissive licence) · get_code("ca230c431c1791f9")
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. 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 numpy as np

# Create small numpy arrays for training and test data
# X: (batch_size=2, features=4)
# Xtest: (batch_size=3, features=4) - different batch size to show distinction
np.random.seed(0)
X = np.random.randn(2, 4).astype(np.float32)
Xtest = np.random.randn(3, 4).astype(np.float32)

ARGS = {
    "X": X,
    "Xtest": Xtest
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple 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

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 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.

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

In this paper, we study the problem of deriving fast and accurate classification algorithms with uncertainty quantification. Gaussian process classification provides a principled approach, but the corresponding computational burden is hardly sustainable in large-scale problems and devising efficient alternatives is a challenge. In this work, we investigate if and how Gaussian process regression directly applied to the classification labels can be used to tackle this question. While in this case training time is remarkably faster, predictions need be calibrated for classification and uncertainty estimation. To this aim, we propose a novel approach based on interpreting the labels as the output of a Dirichlet distribution. Extensive experimental results show that the proposed approach provides essentially the same accuracy and uncertainty quantification of Gaussian process classification while requiring only a fraction of computational resources.

For agents

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

get_harvested_code_for_paper("1805.10915")
get_code_for_paper("1805.10915")
have("1805.10915")

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

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

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

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

Connect an agent — have() is free.