SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2208.01230 · 2022

A Multifaceted Benchmarking of Synthetic Electronic Health Record Generation Models

arXiv · PDF · Open in the Atlas

Code that ran

8 of 19 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; 11 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/2208.01230.json · badge: /api/ran/2208.01230.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
yy6linda/synthetic-ehr-benchmarking canonical (classifier label)
classifier basis not recorded on the link
8 ran · 11 no recorded run
FunctionStatusWhere it lives
find_replicant Ran
ran on a synthesized input
yy6linda/synthetic-ehr-benchmarking/privacy_evaluation/Synthetic_risk_model_mem.py
code served (permissive licence) · get_code("faa4a9c6af83199d")
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 ndarray, ndim 1, dtype family float, shape (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 numpy as np

# Read the function to understand what it expects:
# - real: used with .T (transpose), passed to np.dot as second arg, np.sum on .T
# - fake: used with ** 2 (exponentiation), np.sum with axis=1, reshaped, passed to np.dot as first arg
# Both appear to be 2D numpy arrays (matrices)

# The function computes distances between points in 'fake' and 'real'
# fake shape: (n_fake, n_features)
# real shape: (n_real, n_features)

# Create small test arrays with distinct dimensions
np.random.seed(0)

# fake: 2 samples, 4 features
fake = np.random.randn(2, 4).astype(np.float32)

# real: 3 samples, 4 features
real = np.random.randn(3, 4).astype(np.float32)

ARGS = {
    "real": real,
    "fake": fake,
}
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 ndarray, ndim 1, dtype family float, shape (3,) — shape (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
generate_lattice_bfs Ran
ran on a synthesized input
yy6linda/synthetic-ehr-benchmarking/privacy_evaluation/Synthetic_risk_model_reid.py
code served (permissive licence) · get_code("6181848dd2a3e95a")
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 list, ndim 2, dtype family int; 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.

# Setup code for generate_lattice_bfs

# Analyze the function:
# - Takes top_gen_levels as parameter
# - Uses .copy() method on it (so it should be a list)
# - Checks if elements != 0
# - Decrements elements
# - Checks membership with "in visited"
# - The function works with lists of numbers

# top_gen_levels should be a list of integers representing generation levels
top_gen_levels = [2, 1, 3]

ARGS = {
    "top_gen_levels": top_gen_levels
}
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 list, ndim 2, dtype family int — a list 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
get_entropy Ran
ran on a synthesized input
yy6linda/synthetic-ehr-benchmarking/privacy_evaluation/Synthetic_risk_model_attr.py
code served (permissive licence) · get_code("aa43b0b035541e98")
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

# The function get_entropy expects a column (array-like) of numeric values
# It computes histogram, filters out zero bins, and calculates entropy

# Create a simple column with discrete integer values
column = np.array([1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 5, 5], dtype=int)

ARGS = {
    "column": column
}
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
prepare_data Ran
ran on a synthesized input
yy6linda/synthetic-ehr-benchmarking/privacy_evaluation/synthetic_risk_model_utils.py
code served (permissive licence) · get_code("70ae108e7faad492")
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 ndarray, ndim 2, dtype family float, shape (10, 2598) 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
import tempfile
import os

# Create a temporary .npy file with fake data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, 'fake_data.npy')

# Create fake data with shape (10, 2603)
# The function expects:
# - Column 2599 for j==0
# - Columns 2597, 2598, 2600, 2601, 2602 for j==1 (conditional logic)
# - Column 2602 (n_col - 1) for j==2
# - Columns 0 to 2596 for j < 2599 (with offset -3)
# - Columns 2599 to 2602 for j >= 2599 (with offset +4)

n_row = 10
n_col = 2603

fake_data = np.random.randint(0, 10, size=(n_row, n_col)).astype(float)
# Set up some specific values for the conditional logic in j==1
fake_data[:, 2597] = 0
fake_data[:, 2598] = 0
fake_data[:, 2600] = 0
fake_data[:, 2601] = 0
fake_data[:, 2602] = 1  # This will trigger the last elif in the j==1 case
fake_data[:, 2599] = np.arange(n_row)  # Use row index as identifier

np.save(temp_file, fake_data)

ARGS = {
    'file': temp_file
}
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 ndarray, ndim 2, dtype family float, shape (10, 2598) — shape (10, 2598) 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
prepare_data_vumc Ran
ran on a synthesized input
yy6linda/synthetic-ehr-benchmarking/privacy_evaluation/synthetic_risk_model_utils.py
code served (permissive licence) · get_code("e58e5ee7682cec31")
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 ndarray, ndim 2, dtype family float, shape (250, 16) 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
import tempfile
import os

# Create a temporary numpy file with fake data
# The function expects an .npy file that can be loaded with np.load()
# Based on the function logic, we need:
# - Column 0-3: one-hot encoded categories
# - Column 4: some numeric value
# - Column 5: numeric value to be rounded
# - Column 6: numeric value to be rounded
# - Columns 7+: additional features
# - Last column: numeric value to be rounded

n_rows = 250
n_cols = 20  # arbitrary number of columns >= 12 (n_col - 4 must make sense)

fake_data = np.zeros((n_rows, n_cols))

# Fill in columns 0-3 with one-hot encoding (exactly one 1 per row)
for i in range(n_rows):
    category = i % 4
    fake_data[i, category] = 1

# Fill in column 5 with floats that need rounding
fake_data[:, 5] = np.random.rand(n_rows) * 100

# Fill in column 6 with floats that need rounding
fake_data[:, 6] = np.random.rand(n_rows) * 100

# Fill remaining columns with random values
for col in range(7, n_cols - 1):
    fake_data[:, col] = np.random.rand(n_rows) * 50

# Fill last column with floats
fake_data[:, n_cols - 1] = np.random.rand(n_rows) * 100

# Write to temporary file
temp_fd, temp_file = tempfile.mkstemp(suffix='.npy')
os.close(temp_fd)
np.save(temp_file, fake_data)

ARGS = {
    'file': temp_file
}
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 ndarray, ndim 2, dtype family float, shape (250, 16) — shape (250, 16) 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
prob2onehot Ran
ran on a synthesized input
yy6linda/synthetic-ehr-benchmarking/data_generation/uw/dpgan.py
code served (permissive licence) · get_code("00c49353fc807209")
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 EagerTensor, ndim 2, dtype family float, shape (2, 6) 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 tensorflow as tf
import numpy as np

# Create a small probability tensor
# Shape: (batch_size=2, num_classes=6)
# The function will argmax over axis=-1 (the class dimension)
# then one_hot encode with depth=6
prob_tensor = tf.constant([
    [0.1, 0.2, 0.05, 0.3, 0.25, 0.1],
    [0.05, 0.15, 0.1, 0.2, 0.3, 0.2]
], dtype=tf.float32)

ARGS = {
    "prob": prob_tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 6) — shape (2, 6) 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
prob2onehot Ran
ran on a synthesized input
yy6linda/synthetic-ehr-benchmarking/data_generation/uw/emrwgan.py
code served (permissive licence) · get_code("53cd5ec558942f08")
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 EagerTensor, 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 tensorflow as tf
import numpy as np

# Create a small probability tensor
# Shape: (batch_size=2, num_classes=4)
# Values should be valid probabilities (between 0 and 1, sum to 1 along last axis)
prob_data = np.array([
    [0.1, 0.2, 0.6, 0.1],
    [0.3, 0.3, 0.2, 0.2]
], dtype=np.float32)

prob = tf.constant(prob_data)

ARGS = {
    "prob": prob
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
reorder_data Ran
ran on a synthesized input
yy6linda/synthetic-ehr-benchmarking/privacy_evaluation/synthetic_risk_model_utils.py
code served (permissive licence) · get_code("1f74edbb78015691")
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 ndarray, ndim 2, dtype family float, shape (5, 2610) 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
import tempfile
import os

# Create a temporary numpy file with appropriate dimensions
# The function expects a file with at least 2603 columns (indices up to 2602)
# Let's create data with 2610 columns and a few rows
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, 'test_data.npy')

# Create fake data: 5 rows x 2610 columns
# The function accesses columns up to index 2602 and uses n_col - 1
fake_data = np.random.randint(0, 100, size=(5, 2610)).astype(float)
np.save(temp_file, fake_data)

ARGS = {
    'file': temp_file
}
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 ndarray, ndim 2, dtype family float, shape (5, 2610) — shape (5, 2610) 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
cal_score Not yet run
unverified (harvested, no recorded run)
yy6linda/synthetic-ehr-benchmarking/privacy_evaluation/Synthetic_risk_model_attr.py
code served (permissive licence) · get_code("50ffdcf01c471e6d")
How it ran

no invocation recorded.

each_group Not yet run
unverified (harvested, no recorded run)
yy6linda/synthetic-ehr-benchmarking/privacy_evaluation/Synthetic_risk_model_mem.py
code served (permissive licence) · get_code("426ef3a3832a4d1b")
How it ran

no invocation recorded.

find_neighbour Not yet run
unverified (harvested, no recorded run)
yy6linda/synthetic-ehr-benchmarking/privacy_evaluation/Synthetic_risk_model_attr.py
code served (permissive licence) · get_code("49019b0479f9788d")
How it ran

no invocation recorded.

find_replicant_self Not yet run
unverified (harvested, no recorded run)
yy6linda/synthetic-ehr-benchmarking/privacy_evaluation/Synthetic_risk_model_nnaa.py
code served (permissive licence) · get_code("30132d479215edc4")
How it ran

no invocation recorded.

gen Not yet run
unverified (harvested, no recorded run)
yy6linda/synthetic-ehr-benchmarking/data_generation/uw/dpgan.py
code served (permissive licence) · get_code("a9358df49bc7df73")
How it ran

no invocation recorded.

gen Not yet run
unverified (harvested, no recorded run)
yy6linda/synthetic-ehr-benchmarking/data_generation/uw/emrwgan.py
code served (permissive licence) · get_code("b2c6a7a16c604d07")
How it ran

no invocation recorded.

generate_lattice_dfs Not yet run
unverified (harvested, no recorded run)
yy6linda/synthetic-ehr-benchmarking/privacy_evaluation/Synthetic_risk_model_reid.py
code served (permissive licence) · get_code("36bbb2edd2d1480b")
How it ran

no invocation recorded.

main Not yet run
unverified (harvested, no recorded run)
yy6linda/synthetic-ehr-benchmarking/data_generation/uw/ae.py
code served (permissive licence) · get_code("a9fddf4e63945063")
How it ran

no invocation recorded.

replace_dataset Not yet run
unverified (harvested, no recorded run)
yy6linda/synthetic-ehr-benchmarking/privacy_evaluation/Synthetic_risk_model_reid.py
code served (permissive licence) · get_code("32c073c452caea94")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
yy6linda/synthetic-ehr-benchmarking/data_generation/uw/dpgan.py
code served (permissive licence) · get_code("adeb9d566a32b488")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
yy6linda/synthetic-ehr-benchmarking/data_generation/uw/emrwgan.py
code served (permissive licence) · get_code("501819ee8cd9f4a4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 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 19 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

Synthetic health data have the potential to mitigate privacy concerns when sharing data to support biomedical research and the development of innovative healthcare applications. Modern approaches for data generation based on machine learning, generative adversarial networks (GAN) methods in particular, continue to evolve and demonstrate remarkable potential. Yet there is a lack of a systematic assessment framework to benchmark methods as they emerge and determine which methods are most appropriate for which use cases. In this work, we introduce a generalizable benchmarking framework to appraise key characteristics of synthetic health data with respect to utility and privacy metrics. We apply the framework to evaluate synthetic data generation methods for electronic health records (EHRs) data from two large academic medical centers with respect to several use cases. The results illustrate that there is a utility-privacy tradeoff for sharing synthetic EHR data. The results further indicate that no method is unequivocally the best on all criteria in each use case, which makes it evident why synthetic data generation methods need to be assessed in context.

For agents

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

get_harvested_code_for_paper("2208.01230")
get_code_for_paper("2208.01230")
have("2208.01230")

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

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

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

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

Connect an agent — have() is free.