SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2002.08276 · 2020

Partial Optimal Transport with Applications on Positive-Unlabeled Learning

arXiv · PDF · Open in the Atlas

Code that ran

6 of 26 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 4 have no contract verdict; 1 failure of our instrument; 20 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/2002.08276.json · badge: /api/ran/2002.08276.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
rflamary/POT canonical (classifier label)
classifier basis: census
4 ran · 19 no recorded run
lchapel/partial-GW-for-PU reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
thibsej/unbalanced_gromov_wasserstein reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_cost_matrices Ran
ran; our contract draft was wrong, not the code
lchapel/partial-GW-for-PU/partial_gw.py
pointer only (licence: NONE) · get_code("8b32cc7700975e3c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lchapel/partial-GW-for-PU when it was checked. 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.

convert_to_html_table Ran
ran on a synthesized input
rflamary/POT/benchmarks/benchmark.py
code served (permissive licence) · get_code("a2c491dbf8c2fc12")
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 str. 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 torch
import numpy as np

# Construct results dictionary
# Keys are tuples of (param, name, device, bitsize)
# Values are float results

results = {
    ('param1', 'model_a', 'CPU', 8): 0.1234,
    ('param1', 'model_a', 'GPU', 8): 0.1256,
    ('param1', 'model_b', 'CPU', 8): 0.1289,
    ('param1', 'model_b', 'GPU', 8): 0.1301,
    ('param2', 'model_a', 'CPU', 8): 0.2145,
    ('param2', 'model_a', 'GPU', 8): 0.2167,
    ('param2', 'model_b', 'CPU', 8): 0.2198,
    ('param2', 'model_b', 'GPU', 8): 0.2212,
    ('param1', 'model_a', 'CPU', 16): 0.3456,
    ('param1', 'model_a', 'GPU', 16): 0.3478,
    ('param1', 'model_b', 'CPU', 16): 0.3501,
    ('param1', 'model_b', 'GPU', 16): 0.3523,
    ('param2', 'model_a', 'CPU', 16): 0.4567,
    ('param2', 'model_a', 'GPU', 16): 0.4589,
    ('param2', 'model_b', 'CPU', 16): 0.4612,
    ('param2', 'model_b', 'GPU', 16): 0.4634,
}

ARGS = {
    'results': results,
    'param_name': 'Parameter',
    'main_title': 'Model Benchmark Results',
    'comments': ['Lower precision', 'Higher precision']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
euclid_dist Ran
ran, honoured the contract we drafted
thibsej/unbalanced_gromov_wasserstein/experiments_pu/compute_prediction.py
code served (permissive licence) · get_code("475cc1bb2182df28")
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 Tensor, ndim 2, dtype family float, shape (2, 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 torch

torch.manual_seed(0)

# Create two small point clouds with distinct dimensions
# x: [size_X=2, dim=4]
x = torch.randn(2, 4)

# y: [size_Y=3, dim=4]
y = torch.randn(3, 4)

ARGS = {
    "x": x,
    "y": y,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 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
make_1D_gauss Ran
ran on a synthesized input
rflamary/POT/ot/datasets.py
code served (permissive licence) · get_code("e43f1efd614077e6")
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 (50,) 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

ARGS = {
    "n": 50,
    "m": 25.0,
    "s": 5.0,
}
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 (50,) — shape (50,) 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
setup Ran
ran on a synthesized input
rflamary/POT/benchmarks/emd.py
code served (permissive licence) · get_code("3cfb9f78cee8fd33")
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 numpy as np
import ot

ARGS = {
    "n_samples": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, ot — 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
setup Ran
ran on a synthesized input
rflamary/POT/benchmarks/sinkhorn_knopp.py
code served (permissive licence) · get_code("e3babe388a4f4b1a")
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 numpy as np

ARGS = {
    "n_samples": 8
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, ot — 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
bures_wasserstein_mapping Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/gaussian.py
code served (permissive licence) · get_code("8a32949258519378")
How it ran

no invocation recorded.

bures_wasserstein_mapping_hd Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/gaussian.py
code served (permissive licence) · get_code("bc8de67925b50231")
How it ran

no invocation recorded.

co_optimal_transport Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/coot.py
code served (permissive licence) · get_code("69c475a756b4c16d")
How it ran

no invocation recorded.

co_optimal_transport2 Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/coot.py
code served (permissive licence) · get_code("58fcb1243e9431e8")
How it ran

no invocation recorded.

dist Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/dr.py
code served (permissive licence) · get_code("2118fa5b8b878d5a")
How it ran

no invocation recorded.

emd_laplace Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/da.py
code served (permissive licence) · get_code("73765b4368a7da60")
How it ran

no invocation recorded.

empirical_bures_wasserstein_mapping Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/gaussian.py
code served (permissive licence) · get_code("0644908f11a7d16f")
How it ran

no invocation recorded.

empirical_sinkhorn2_geomloss Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/bregman/_geomloss.py
code served (permissive licence) · get_code("1b4a33bceedbe219")
How it ran

no invocation recorded.

exec_bench Not yet run
unverified (harvested, no recorded run)
rflamary/POT/benchmarks/benchmark.py
code served (permissive licence) · get_code("83cc6adc356e85a7")
How it ran

no invocation recorded.

factored_optimal_transport Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/factored.py
code served (permissive licence) · get_code("06c779d1369d447e")
How it ran

no invocation recorded.

gaussian_logpdf Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/gmm.py
code served (permissive licence) · get_code("5b25f9eee280604c")
How it ran

no invocation recorded.

gaussian_pdf Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/gmm.py
code served (permissive licence) · get_code("c17b059ab990ed05")
How it ran

no invocation recorded.

get_sinkhorn_geomloss_lazytensor Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/bregman/_geomloss.py
code served (permissive licence) · get_code("fbf86f3cc43ee048")
How it ran

no invocation recorded.

gmm_pdf Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/gmm.py
code served (permissive licence) · get_code("f707d7f51ef8cb3b")
How it ran

no invocation recorded.

gwgrad Not yet run
unverified (harvested, no recorded run)
lchapel/partial-GW-for-PU/partial_gw.py
pointer only (licence: NONE) · get_code("147fd80456b80804")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lchapel/partial-GW-for-PU when it was checked. 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.

logsumexp Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/dr.py
code served (permissive licence) · get_code("c7a68e23d2667c68")
How it ran

no invocation recorded.

make_2D_samples_gauss Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/datasets.py
code served (permissive licence) · get_code("8d98a43cb6bd2036")
How it ran

no invocation recorded.

sinkhorn Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/dr.py
code served (permissive licence) · get_code("aa603000556ebca2")
How it ran

no invocation recorded.

sinkhorn_l1l2_gl Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/da.py
code served (permissive licence) · get_code("a41e53894dc65ebb")
How it ran

no invocation recorded.

sinkhorn_lpl1_mm Not yet run
unverified (harvested, no recorded run)
rflamary/POT/ot/da.py
code served (permissive licence) · get_code("2a7422ba1267f3f3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 26 samples lifted from this paper's linked repositories, 26 carry a function identity and 0 do not. Of the 26 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 25 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
gwgrad 1 other paper
1 later
2402.03664 (2024-02)
Partial Gromov-Wasserstein Metric

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

Classical optimal transport problem seeks a transportation map that preserves the total mass betwenn two probability distributions, requiring their mass to be the same. This may be too restrictive in certain applications such as color or shape matching, since the distributions may have arbitrary masses and/or that only a fraction of the total mass has to be transported. Several algorithms have been devised for computing partial Wasserstein metrics that rely on an entropic regularization, but when it comes with exact solutions, almost no partial formulation of neither Wasserstein nor Gromov-Wasserstein are available yet. This precludes from working with distributions that do not lie in the same metric space or when invariance to rotation or translation is needed. In this paper, we address the partial Wasserstein and Gromov-Wasserstein problems and propose exact algorithms to solve them. We showcase the new formulation in a positive-unlabeled (PU) learning application. To the best of our knowledge, this is the first application of optimal transport in this context and we first highlight that partial Wasserstein-based metrics prove effective in usual PU learning settings. We then demonstrate that partial Gromov-Wasserstein metrics is efficient in scenario where point clouds come from different domains or have different features.

For agents

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

get_harvested_code_for_paper("2002.08276")
get_code_for_paper("2002.08276")
have("2002.08276")

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

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

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

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

Connect an agent — have() is free.