SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2202.08303 · 2022

OpenKBP-Opt: An international and reproducible evaluation of 76 knowledge-based planning pipelines

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 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 2 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2202.08303.json · badge: /api/ran/2202.08303.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
ababier/open-kbp-opt canonical (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
FunctionStatusWhere it lives
get_paths Ran
ran on a synthesized input
ababier/open-kbp-opt/provided_code/general_functions.py
code served (permissive licence) · get_code("6c4f4e699e9e2f8d")
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 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 os
import tempfile
import pathlib

# Create a temporary directory with some test files
temp_dir = tempfile.mkdtemp()

# Create some test files with different extensions
test_file_1 = os.path.join(temp_dir, "test1.txt")
test_file_2 = os.path.join(temp_dir, "test2.txt")
test_file_3 = os.path.join(temp_dir, "test3.jpg")
hidden_file = os.path.join(temp_dir, ".hidden")

with open(test_file_1, 'w') as f:
    f.write("test1")
with open(test_file_2, 'w') as f:
    f.write("test2")
with open(test_file_3, 'w') as f:
    f.write("test3")
with open(hidden_file, 'w') as f:
    f.write("hidden")

# Also create a subdirectory to test with
test_subdir = os.path.join(temp_dir, "subdir")
os.makedirs(test_subdir)
subdir_file = os.path.join(test_subdir, "subfile.txt")
with open(subdir_file, 'w') as f:
    f.write("subfile")

ARGS = {
    "directory_path": temp_dir,
    "ext": "txt"
}
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 1, dtype family float — 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
load_file Ran
ran on a synthesized input
ababier/open-kbp-opt/provided_code/general_functions.py
code served (permissive licence) · get_code("6aff645c77a21ad8")
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 DataFrame. 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
import pandas as pd
from scipy.sparse import coo_matrix
import tempfile
import os

# Create temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a test CSV file for plan-weights
plan_weights_file = os.path.join(temp_dir, "plan-weights", "test.csv")
os.makedirs(os.path.dirname(plan_weights_file), exist_ok=True)
with open(plan_weights_file, 'w') as f:
    f.write("Objective,Weight,Optimized objective,Input objective\n")
    f.write("obj1,0.5,0.8,0.7\n")

# Create a test CSV file for plan-gap
plan_gap_file = os.path.join(temp_dir, "plan-gap", "test.csv")
os.makedirs(os.path.dirname(plan_gap_file), exist_ok=True)
pd.Series([0.1, 0.2, 0.3], index=['idx1', 'idx2', 'idx3']).to_csv(plan_gap_file, header=False)

# Create a test voxel_dimensions.csv file
voxel_dims_file = os.path.join(temp_dir, "voxel_dimensions.csv")
np.savetxt(voxel_dims_file, np.array([[1.0, 2.0, 3.0]]), delimiter=',')

# Create a test beamlet_indices.csv file
beamlet_file = os.path.join(temp_dir, "beamlet_indices.csv")
df = pd.DataFrame({'data': [10, 20, 30]}, index=['a', 'b', 'c'])
df.index.name = 'index'
df.to_csv(beamlet_file)

# Create a test CSV with data column (standard case)
standard_csv_file = os.path.join(temp_dir, "standard_data.csv")
df_standard = pd.DataFrame({'data': [100, 200, 300]}, index=['x', 'y', 'z'])
df_standard.index.name = 'index'
df_standard.to_csv(standard_csv_file)

# Create a test NPZ file
npz_file = os.path.join(temp_dir, "test.npz")
sparse_matrix = coo_matrix(np.array([[1, 0, 2], [0, 0, 3], [4, 5, 6]]))
import scipy.sparse
scipy.sparse.save_npz(npz_file, sparse_matrix)

# Use the plan_weights_file as the main test file
ARGS = {
    'file_name': plan_weights_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
sparse_vector_function Not yet run
unverified (harvested, no recorded run)
ababier/open-kbp-opt/provided_code/general_functions.py
code served (permissive licence) · get_code("6aeae4332459183c")
How it ran

no invocation recorded.

Also present in other papers' code

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

Repositories linked to this paper

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

Abstract

We establish an open framework for developing plan optimization models for knowledge-based planning (KBP) in radiotherapy. Our framework includes reference plans for 100 patients with head-and-neck cancer and high-quality dose predictions from 19 KBP models that were developed by different research groups during the OpenKBP Grand Challenge. The dose predictions were input to four optimization models to form 76 unique KBP pipelines that generated 7600 plans. The predictions and plans were compared to the reference plans via: dose score, which is the average mean absolute voxel-by-voxel difference in dose a model achieved; the deviation in dose-volume histogram (DVH) criterion; and the frequency of clinical planning criteria satisfaction. We also performed a theoretical investigation to justify our dose mimicking models. The range in rank order correlation of the dose score between predictions and their KBP pipelines was 0.50 to 0.62, which indicates that the quality of the predictions is generally positively correlated with the quality of the plans. Additionally, compared to the input predictions, the KBP-generated plans performed significantly better (P<0.05; one-sided Wilcoxon test) on 18 of 23 DVH criteria. Similarly, each optimization model generated plans that satisfied a higher percentage of criteria than the reference plans. Lastly, our theoretical investigation demonstrated that the dose mimicking models generated plans that are also optimal for a conventional planning model. This was the largest international effort to date for evaluating the combination of KBP prediction and optimization models. In the interest of reproducibility, our data and code is freely available at https://github.com/ababier/open-kbp-opt.

For agents

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

get_harvested_code_for_paper("2202.08303")
get_code_for_paper("2202.08303")
have("2202.08303")

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

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

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

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

Connect an agent — have() is free.