SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1802.08539 · 2018

Computation of optimal transport and related hedging problems via penalization and neural networks

arXiv · PDF · Open in the Atlas

Code that ran

3 of 11 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 3 have no contract verdict; 0 failures of our instrument; 8 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/1802.08539.json · badge: /api/ran/1802.08539.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
stephaneckstein/transport-and-related canonical (classifier label)
classifier basis: census
3 ran · 8 no recorded run
FunctionStatusWhere it lives
load Ran
ran on a synthesized input
stephaneckstein/transport-and-related/GAN_Toy/tflib/small_imagenet.py
code served (permissive licence) · get_code("1a0e58d55a9c7df2")
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, 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 numpy as np
import tempfile
import os
from PIL import Image

# Create a temporary directory with dummy PNG files
temp_dir = tempfile.mkdtemp()
train_dir = os.path.join(temp_dir, 'train_64x64')
valid_dir = os.path.join(temp_dir, 'valid_64x64')
os.makedirs(train_dir, exist_ok=True)
os.makedirs(valid_dir, exist_ok=True)

# Create a few dummy 64x64 RGB PNG images for training set
for i in range(1, 4):
    img_array = np.random.randint(0, 256, (64, 64, 3), dtype=np.uint8)
    img = Image.fromarray(img_array)
    img.save(os.path.join(train_dir, f'{i:07d}.png'))

# Create a few dummy 64x64 RGB PNG images for validation set
for i in range(1, 3):
    img_array = np.random.randint(0, 256, (64, 64, 3), dtype=np.uint8)
    img = Image.fromarray(img_array)
    img.save(os.path.join(valid_dir, f'{i:05d}.png'))

ARGS = {
    'batch_size': 2,
    'data_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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
make_generator Ran
ran on a synthesized input
stephaneckstein/transport-and-related/GAN_Toy/tflib/small_imagenet.py
code served (permissive licence) · get_code("9e376b4951c6e38c")
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 function. 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 tempfile
import os
from PIL import Image

# Create a temporary directory with dummy PNG files
temp_dir = tempfile.mkdtemp()
n_files = 3

# Create dummy PNG image files
for i in range(1, n_files + 1):
    # Create a small 64x64 RGB image
    img_array = np.random.randint(0, 256, (64, 64, 3), dtype=np.uint8)
    img = Image.fromarray(img_array, mode='RGB')
    img.save(os.path.join(temp_dir, f'{str(i).zfill(len(str(n_files)))}.png'))

ARGS = {
    'path': temp_dir,
    'n_files': n_files,
    'batch_size': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
running_mean Ran
ran on a synthesized input
stephaneckstein/transport-and-related/FrechetHoeffding/Figure1.py
code served (permissive licence) · get_code("71fc580ec2a0a968")
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; no output shape is stated. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:36:13Z. 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

# Construct arguments for running_mean function
# The function takes:
# - l: list of numbers
# - k: integer (window size for running mean)

# Create a simple list of numbers for the running mean calculation
l = [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0]

# Create a window size k
k = 3

ARGS = {
    "l": l,
    "k": k
}
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 — no output shape is stated: no later run recorded an output shape for this sample (observed_output and metamorphic_properties carry none; shape_contract and output_contract record ndim only)
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 syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); 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
build_graph Not yet run
unverified (harvested, no recorded run)
stephaneckstein/transport-and-related/FrechetHoeffding/Figure1.py
code served (permissive licence) · get_code("cc6f3096cfcd3dd1")
How it ran

no invocation recorded.

build_graph Not yet run
unverified (harvested, no recorded run)
stephaneckstein/transport-and-related/FrechetHoeffding/Table2.py
code served (permissive licence) · get_code("e732376ac85a07a3")
How it ran

no invocation recorded.

build_graph Not yet run
unverified (harvested, no recorded run)
stephaneckstein/transport-and-related/MartingaleOT/Figure2Program.py
code served (permissive licence) · get_code("d8655afa4ef8ef3f")
How it ran

no invocation recorded.

get_inception_score Not yet run
unverified (harvested, no recorded run)
stephaneckstein/transport-and-related/GAN_Toy/tflib/inception_score.py
code served (permissive licence) · get_code("2c56d76ac1ac9531")
How it ran

no invocation recorded.

mnist_generator Not yet run
unverified (harvested, no recorded run)
stephaneckstein/transport-and-related/GAN_Toy/tflib/mnist.py
code served (permissive licence) · get_code("3e20c78c36a491fb")
How it ran

no invocation recorded.

univ_approx Not yet run
unverified (harvested, no recorded run)
stephaneckstein/transport-and-related/FrechetHoeffding/Figure1.py
code served (permissive licence) · get_code("b6c74db4d8efbff1")
How it ran

no invocation recorded.

univ_approx Not yet run
unverified (harvested, no recorded run)
stephaneckstein/transport-and-related/FrechetHoeffding/Table2.py
code served (permissive licence) · get_code("07502cb7a311861a")
How it ran

no invocation recorded.

univ_approx Not yet run
unverified (harvested, no recorded run)
stephaneckstein/transport-and-related/MartingaleOT/Figure2Program.py
code served (permissive licence) · get_code("38cede2489079595")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 10 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
get_inception_score 2 other papers
2 later
1901.02477 (2019-01)
Differentially Private Generative Adversarial Networks for Time Series, Continuous, and Discrete Open Data
1904.07482 (2019-04)
Object-Oriented Dynamics Learning through Multi-Level Abstraction

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

This paper presents a widely applicable approach to solving (multi-marginal, martingale) optimal transport and related problems via neural networks. The core idea is to penalize the optimization problem in its dual formulation and reduce it to a finite dimensional one which corresponds to optimizing a neural network with smooth objective function. We present numerical examples from optimal transport, martingale optimal transport, portfolio optimization under uncertainty and generative adversarial networks that showcase the generality and effectiveness of the approach.

For agents

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

get_harvested_code_for_paper("1802.08539")
get_code_for_paper("1802.08539")
have("1802.08539")

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

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

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

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

Connect an agent — have() is free.