SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.05109 · ICML · 2023

Conformalization of Sparse Generalized Linear Models

Eugene Ndiaye, Etash Kumar Guha, Xiaoming Huo

arXiv · PDF · Open in the Atlas

Code that ran

2 of 4 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 0 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/2307.05109.json · badge: /api/ran/2307.05109.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
etashguha/sparse_conformal canonical (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
EtashGuha/sparse_conformal canonical (classifier label)
classifier basis: census
1 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
0 ran · 1 no recorded run
FunctionStatusWhere it lives
random_perm Ran
ran, honoured the contract we drafted
EtashGuha/sparse_conformal/code/cp_experiments.py
code served (permissive licence) · get_code("7b8bd61bfbc91164")
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 copy
import random
import torch

torch.manual_seed(0)

# The function takes X and Y, which are used with:
# - len(X) to get length
# - indexing X[swap], X[-1], Y[swap], Y[-1]
# - assignment operations
# So X and Y should be lists of items

# Create two lists with distinct items for clarity
X = [torch.tensor([1.0, 2.0, 3.0, 4.0]), 
     torch.tensor([5.0, 6.0, 7.0, 8.0]),
     torch.tensor([9.0, 10.0, 11.0, 12.0])]

Y = [torch.tensor([0.0]), 
     torch.tensor([1.0]),
     torch.tensor([2.0])]

ARGS = {
    "X": X,
    "Y": Y
}
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 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
rank Ran
ran, honoured the contract we drafted
etashguha/sparse_conformal/rootCP/rootcp/rootCP.py
code served (permissive licence) · get_code("eb3b2353d3baa939")
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 float64, 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 numpy as np
from scipy.special import expit

# Construct arguments for the rank function
# The function takes u (array-like) and optional gamma (scalar or None)

# Create a small numpy array for u
u = np.array([1.5, 2.3, 0.8, 3.1, 1.2])

# gamma can be None or a scalar value
gamma = 0.5

ARGS = {
    "u": u,
    "gamma": gamma
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, scipy — 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, 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
conformalset Not yet run
unverified (harvested, no recorded run)
etashguha/sparse_conformal/rootCP/rootcp/rootCP.py
code served (permissive licence) · get_code("852211a150a26652")
How it ran

no invocation recorded.

rank Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from eugenendiaye/stable_conformal_prediction
pointer only; the stored copy get_code serves, from eugenendiaye/stable_conformal_prediction, is pointer only (licence: NOASSERTION) · get_code("749ee319396aaa01")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 3 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 1 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
rank
brick of this paper's assembly: helper
2 other papers
2 dated earlier
2104.06648 (2021-04)
Root-finding Approaches for Computing Conformal Prediction Set
2112.10224 (2021-12)
Stable Conformal Prediction Sets
conformalset
brick of this paper's assembly: entry
1 other paper
1 dated earlier
2104.06648 (2021-04)
Root-finding Approaches for Computing Conformal Prediction Set

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

Given a sequence of observable variables {(x 1 , y 1 ), . . . , (x n , y n )}, the conformal prediction method estimates a confidence set for y n+1 given x n+1 that is valid for any finite sample size by merely assuming that the joint distribution of the data is permutation invariant. Although attractive, computing such a set is computationally infeasible in most regression problems. Indeed, in these cases, the unknown variable y n+1 can take an infinite number of possible candidate values, and generating conformal sets requires retraining a predictive model for each candidate. In this paper, we focus on a sparse linear model with only a subset of variables for prediction and use numerical continuation techniques to approximate the solution path efficiently. The critical property we exploit is that the set of selected variables is invariant under a small perturbation of the input data. Therefore, it is sufficient to enumerate and refit the model only at the change points of the set of active features and smoothly interpolate the rest of the solution via a Predictor-Corrector mechanism. We show how our path-following algorithm accurately approximates conformal prediction sets and illustrate its performance using synthetic and real data examples.

For agents

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

get_harvested_code_for_paper("2307.05109")
get_code_for_paper("2307.05109")
have("2307.05109")

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

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

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

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

Connect an agent — have() is free.