SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2602.17543 · 2026

genriesz: A Python Package for Automatic Debiased Machine Learning with Generalized Riesz Regression

Masahiro Kato

arXiv · PDF · Open in the Atlas

Code that ran

11 of 15 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; 1 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 7 failures of our instrument; 4 no recorded run), measured 2026-11-21; 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/2602.17543.json · badge: /api/ran/2602.17543.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
MasaKat0/genriesz community
Papers with Code archive
11 ran · 4 no recorded run
FunctionStatusWhere it lives
MLP Ran
ran on a synthesized input
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("aac17f214043b73a")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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. A run is recorded.

TimeEmbedding Ran
ran on a synthesized input
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("cbfece8c804c3676")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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. A run is recorded.

TimeScoreNet Ran
ran on a synthesized input
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("059b6f2f6a323ea7")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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. A run is recorded.

_as_2d_float_array Ran
ran; our contract draft was wrong, not the code
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("b462752e5b232de4")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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. A run is recorded.

_keeps_global_torch_rng Ran
ran; our contract draft was wrong, not the code
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("4444763ddde735de")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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. A run is recorded.

_rand_batch Ran
ran; our contract draft was wrong, not the code
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("38faabe0e9af49f0")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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. A run is recorded.

get_device Ran
ran; our contract draft was wrong, not the code
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("003bce1094c3908d")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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. A run is recorded.

interpolate_linear Ran
ran, honoured the contract we drafted
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("14222eebe2da2962")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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. A run is recorded.

lambda_fn Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("5427663ed0151c20")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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. A run is recorded.

lambda_prime_fn Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("66e6e15668cf7727")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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. A run is recorded.

time_smr_loss Ran
ran; our contract draft was wrong, not the code
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("a70d4e32e3842915")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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. A run is recorded.

_require_torch Not yet run
unverified (harvested, no recorded run)
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("8525807841a32dd1")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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.

_seed_torch Not yet run
unverified (harvested, no recorded run)
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("c6bd8ac8f1d9f7f9")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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.

_warn_if_unstable_lambda_kind Not yet run
unverified (harvested, no recorded run)
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("8ec733601b00cd86")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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.

fit_time_smr_dre_infinity Not yet run
unverified (harvested, no recorded run)
MasaKat0/genriesz/src/genriesz/scorematchingriesz.py
pointer only (licence: GPL-3.0) · get_code("b8467179acf8221a")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, MasaKat0/genriesz, is not in the permissive set Syntology serves inline. 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 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 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 15 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-21.

Repositories linked to this paper

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

Abstract

Efficient estimation of causal and structural parameters can be automated using the Riesz representation theorem and debiased machine learning (DML). We present genriesz, an open-source Python package that implements automatic DML and generalized Riesz regression, a unified framework for estimating Riesz representers by minimizing empirical Bregman divergences. This framework includes covariate balancing, nearest-neighbor matching, calibrated estimation, and density ratio estimation as special cases. A key design principle of the package is automatic regressor balancing (ARB): given a Bregman generator g and a representer model class, genriesz automatically constructs a compatible link function so that the generalized Riesz regression estimator satisfies balancing (moment-matching) optimality conditions in a user-chosen basis. The package provides a modular interface for specifying (i) the target linear functional via a black-box evaluation oracle, (ii) the representer model via basis functions (polynomial, RKHS approximations, random forest leaf encodings, neural embeddings, and a nearest-neighbor catchment basis), and (iii) the Bregman generator, with optional user-supplied derivatives. It returns regression adjustment (RA), Riesz weighting (RW), augmented Riesz weighting (ARW), and TMLE-style estimators with cross-fitting, confidence intervals, and p-values. We highlight representative workflows for estimation problems such as the average treatment effect (ATE), ATE on treated (ATT), and average marginal effect estimation. The Python package is available at https://github.com/MasaKat0/genriesz and on PyPI.

For agents

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

get_harvested_code_for_paper("2602.17543")
get_code_for_paper("2602.17543")
have("2602.17543")

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

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

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

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

Connect an agent — have() is free.