SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Li_Data_Valuation_and_Detections_in_Federated_Learning_CVPR_2024_paper · CVPR · 2024

Data Valuation and Detections in Federated Learning

Wenqian Li, Yan Pang, Shuran Fu

Open in the Atlas

Code that ran

14 of 23 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 14 have no contract verdict; 0 failures of our instrument; 9 no recorded run), measured 2026-11-24; 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/Li_Data_Valuation_and_Detections_in_Federated_Learning_CVPR_2024_paper.json · badge: /api/ran/Li_Data_Valuation_and_Detections_in_Federated_Learning_CVPR_2024_paper.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
muz1lee/MOTdata canonical (classifier label)
classifier basis: census
14 ran · 9 no recorded run
FunctionStatusWhere it lives
as_si Ran
ran on a synthesized input
muz1lee/MOTdata/otdd/plotting.py
code served (permissive licence) · get_code("a7ad9c0571a0b644")
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

torch.manual_seed(0)

# Analyze the function:
# - x: a number that will be formatted using '{x:0.{ndp:d}e}'.format()
# - ndp: an integer specifying decimal places in scientific notation format
# The function converts a number to LaTeX-style scientific notation

ARGS = {
    'x': 1234.5678,
    'ndp': 3
}
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
dampening Ran
ran on a synthesized input
muz1lee/MOTdata/geomloss/sinkhorn_divergence.py
code served (permissive licence) · get_code("af424e7ea97893cb")
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 float, ndim 0, dtype family float, shape () 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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - eps: a numeric value (float or int)
# - rho: a numeric value or None
# The function performs simple arithmetic operations

eps = 0.1
rho = 0.5

ARGS = {
    "eps": eps,
    "rho": rho,
}
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 float, ndim 0, dtype family float, shape () — shape () 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
distances Ran
ran on a synthesized input
muz1lee/MOTdata/geomloss/utils.py
code served (permissive licence) · get_code("05c6b50cc7c22f81")
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 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 small 2D tensors for testing
x_2d = torch.randn(2, 4)  # batch_size=2, dim=4
y_2d = torch.randn(3, 4)  # batch_size=3, dim=4

ARGS = {
    'x': x_2d,
    'y': y_2d,
    'use_keops': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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
double_grad Ran
ran on a synthesized input
muz1lee/MOTdata/geomloss/kernel_samples.py
code served (permissive licence) · get_code("fa19a9acaa63d8d6")
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 Tensor, 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 torch

torch.manual_seed(0)

# The function double_grad takes a single parameter 'x' which should be a tensor
# that requires gradients so that autograd can flow through it
x = torch.randn(2, 4, requires_grad=True)

ARGS = {
    'x': x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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, 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
get_plot_ranges Ran
ran on a synthesized input
muz1lee/MOTdata/otdd/plotting.py
code served (permissive licence) · get_code("99f62aec128f4e86")
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 torch
import numpy as np

torch.manual_seed(0)

# Construct a 2D tensor with shape (4, 2) for X
# The function expects X[:, 0] and X[:, 1] to be extractable (2D array/tensor with at least 2 columns)
X = torch.tensor([
    [1.0, 2.0],
    [3.0, 4.0],
    [5.0, 6.0],
    [7.0, 8.0]
])

ARGS = {
    "X": X
}
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 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
heatmap Ran
ran on a synthesized input
muz1lee/MOTdata/otdd/plotting.py
code served (permissive licence) · get_code("111f3719f5e48079")
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 matplotlib.pyplot as plt
import numpy as np

# Create sample data
np.random.seed(0)
data = np.random.rand(4, 3)  # 4 rows, 3 columns

# Create labels
row_labels = ['Row_A', 'Row_B', 'Row_C', 'Row_D']
col_labels = ['Col_1', 'Col_2', 'Col_3']

# Create axes
fig, ax = plt.subplots()

# Create colorbar kwargs
cbar_kw = {'shrink': 0.8}

# Create cbarlabel
cbarlabel = 'Value'

# Additional kwargs for imshow
imshow_kwargs = {'cmap': 'viridis', 'aspect': 'auto'}

ARGS = {
    'data': data,
    'row_labels': row_labels,
    'col_labels': col_labels,
    'ax': ax,
    'cbar': True,
    'cbar_kw': cbar_kw,
    'cbarlabel': cbarlabel,
    **imshow_kwargs
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy — 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
kernel_truncation Ran
ran on a synthesized input
muz1lee/MOTdata/geomloss/sinkhorn_images.py
code served (permissive licence) · get_code("543018b61d1eebe5")
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 4, 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 torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Create small cost matrices (batch_size=2, dim=4)
C_xy = torch.randn(2, 4, 4)
C_yx = torch.randn(2, 4, 4)
C_xy_fine = torch.randn(2, 4, 4)
C_yx_fine = torch.randn(2, 4, 4)

# Create small transport maps (functions)
def f_ba(x):
    """Transport map from b to a"""
    return x @ torch.randn(4, 3)

def g_ab(x):
    """Transport map from a to b"""
    return x @ torch.randn(4, 3)

# Regularization parameter
eps = 0.1

# Truncation parameter (optional)
truncate = 0.5

# Cost function (optional)
def cost(x, y):
    """Euclidean cost"""
    return torch.cdist(x, y)

# Verbose flag
verbose = False

ARGS = {
    'C_xy': C_xy,
    'C_yx': C_yx,
    'C_xy_fine': C_xy_fine,
    'C_yx_fine': C_yx_fine,
    'f_ba': f_ba,
    'g_ab': g_ab,
    'eps': eps,
    'truncate': truncate,
    'cost': cost,
    'verbose': verbose,
}
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 tuple, ndim 4, 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
laplacian_kernel Ran
ran on a synthesized input
muz1lee/MOTdata/geomloss/kernel_samples.py
code served (permissive licence) · get_code("fcc50e63a4f1f1c9")
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 Tensor, ndim 2, 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 torch
import numpy as np

torch.manual_seed(0)

# The function calls distances(x / blur, y / blur, use_keops=use_keops)
# We need to mock the distances function since it's not defined in the snippet
def distances(x, y, use_keops=False):
    """Mock distances function that returns a pairwise distance matrix."""
    # x shape: (batch_x, dim), y shape: (batch_y, dim)
    # returns shape: (batch_x, batch_y)
    if use_keops:
        # For keops, we still return a tensor
        return torch.cdist(x, y)
    else:
        return torch.cdist(x, y)

# Inject the mock into the module namespace
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'distances', distances)

# Create small tensors with distinct dimensions
x = torch.randn(2, 4)  # batch=2, dim=4
y = torch.randn(3, 4)  # batch=3, dim=4

# For ranges parameter (used when use_keops=True)
# Based on the code, it just assigns K.ranges = ranges, so it can be any object
ranges = None

ARGS = {
    'x': x,
    'y': y,
    'blur': 0.05,
    'use_keops': False,
    'ranges': ranges,
}
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 Tensor, ndim 2, dtype family float — no output shape is stated: observe_signature.py could not observe it (fixture:KeyError)
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
launch_logger Ran
ran on a synthesized input
muz1lee/MOTdata/otdd/utils.py
code served (permissive licence) · get_code("652ff7cd9e338b0c")
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 RootLogger. 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 sys
import logging
import tempfile

ARGS = {
    'console_level': 'warning'
}
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 RootLogger — a RootLogger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a RootLogger 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
log_weights Ran
ran on a synthesized input
muz1lee/MOTdata/geomloss/sinkhorn_divergence.py
code served (permissive licence) · get_code("c77c33d227ed4571")
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 Tensor, ndim 1, dtype family float, shape (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 torch
import numpy as np

torch.manual_seed(0)

# The function takes a tensor 'a' and calls:
# - a.log() - requires a tensor method
# - a[a <= 0] = -100000 - requires indexing and assignment
# So 'a' must be a torch.Tensor with numeric values

# Create a small tensor with mixed positive and non-positive values
# to test both branches of the clamping logic
a = torch.tensor([0.5, 0.1, -0.2, 0.0], dtype=torch.float32)

ARGS = {
    "a": a
}
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 Tensor, ndim 1, dtype family float, shape (4,) — shape (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
max_diameter Ran
ran on a synthesized input
muz1lee/MOTdata/geomloss/sinkhorn_divergence.py
code served (permissive licence) · get_code("476c0daed2be9704")
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 float, ndim 0, dtype family float, shape () 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
# x: (N=2, D=4) - first point cloud with 2 points in 4D space
x = torch.randn(2, 4)

# y: (M=3, D=4) - second point cloud with 3 points in 4D space
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, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () 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
scal Ran
ran on a synthesized input
muz1lee/MOTdata/geomloss/utils.py
code served (permissive licence) · get_code("8149a2bb2448524b")
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 Tensor, ndim 0, dtype family float, shape () 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 tensors for the function
# The function reshapes them and computes dot product (batch=False) or batch-wise dot products (batch=True)
a = torch.randn(4)
f = torch.randn(4)

ARGS = {
    "a": a,
    "f": f,
    "batch": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 0, dtype family float, shape () — shape () 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
softmin_tensorized Ran
ran on a synthesized input
muz1lee/MOTdata/geomloss/sinkhorn_samples.py
code served (permissive licence) · get_code("3fa1ef03672ed4c1")
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 Tensor, 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 torch

torch.manual_seed(0)

# Parameters for softmin_tensorized
eps = 0.1  # Temperature parameter, positive float

# Cost matrix C_xy with shape (B, N, M)
# B=2 (batch), N=4 (x points), M=3 (y points)
C_xy = torch.randn(2, 4, 3)

# Dual potential h_y with shape (B, M)
# B=2 (batch), M=3 (y points)
h_y = torch.randn(2, 3)

ARGS = {
    "eps": eps,
    "C_xy": C_xy,
    "h_y": h_y,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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, 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
squared_distances Ran
ran on a synthesized input
muz1lee/MOTdata/geomloss/utils.py
code served (permissive licence) · get_code("410e9804b7fc5827")
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 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 small test tensors
# For 2D case: (batch_size, feature_dim)
x_2d = torch.randn(2, 4)
y_2d = torch.randn(3, 4)

# For 3D case: (batch_size, seq_len, feature_dim)
x_3d = torch.randn(2, 5, 4)
y_3d = torch.randn(2, 6, 4)

# Test with 2D tensors and use_keops=False
ARGS = {
    'x': x_2d,
    'y': y_2d,
    'use_keops': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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
ImagesBarycenter Not yet run
unverified (harvested, no recorded run)
muz1lee/MOTdata/geomloss/wasserstein_barycenter_images.py
code served (permissive licence) · get_code("2dea514fe42d8e17")
How it ran

no invocation recorded.

barycenter_iteration Not yet run
unverified (harvested, no recorded run)
muz1lee/MOTdata/geomloss/wasserstein_barycenter_images.py
code served (permissive licence) · get_code("63aea38baa311947")
How it ran

no invocation recorded.

collate_fn Not yet run
unverified (harvested, no recorded run)
muz1lee/MOTdata/utils1.py
code served (permissive licence) · get_code("a1e286dcb486b150")
How it ran

no invocation recorded.

collate_fn_label_noise Not yet run
unverified (harvested, no recorded run)
muz1lee/MOTdata/utils1.py
code served (permissive licence) · get_code("77361ecf3b28ee6b")
How it ran

no invocation recorded.

extrapolate Not yet run
unverified (harvested, no recorded run)
muz1lee/MOTdata/geomloss/sinkhorn_images.py
code served (permissive licence) · get_code("7b0de40d3896c2ab")
How it ran

no invocation recorded.

gaussian_kernel Not yet run
unverified (harvested, no recorded run)
muz1lee/MOTdata/geomloss/kernel_samples.py
code served (permissive licence) · get_code("e48a4e3b1a768ff6")
How it ran

no invocation recorded.

sinkhorn_divergence Not yet run
unverified (harvested, no recorded run)
muz1lee/MOTdata/geomloss/sinkhorn_images.py
code served (permissive licence) · get_code("4e2fb6364c034026")
How it ran

no invocation recorded.

sinkhorn_tensorized Not yet run
unverified (harvested, no recorded run)
muz1lee/MOTdata/geomloss/sinkhorn_samples.py
code served (permissive licence) · get_code("23c91c2a30b69fee")
How it ran

no invocation recorded.

softmin_online_lazytensor Not yet run
unverified (harvested, no recorded run)
muz1lee/MOTdata/geomloss/sinkhorn_samples.py
code served (permissive licence) · get_code("d661965c17f49e6a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 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.

FunctionAlso present inEarliest-datedOthers named
as_si 1 other paper
1 dated earlier
2010.12760 (2020-10)
Dataset Dynamics via Gradient Flows in Probability Space
get_plot_ranges 1 other paper
1 dated earlier
2010.12760 (2020-10)
Dataset Dynamics via Gradient Flows in Probability Space
heatmap 1 other paper
1 dated earlier
2010.12760 (2020-10)
Dataset Dynamics via Gradient Flows in Probability Space
launch_logger 1 other paper
1 dated earlier
2010.12760 (2020-10)
Dataset Dynamics via Gradient Flows in Probability Space

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-24.

Repositories linked to this paper

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

Abstract

Federated Learning (FL) enables collaborative model training while preserving the privacy of raw data. A challenge in this framework is the fair and efficient valuation of data, which is crucial for incentivizing clients to contribute high-quality data in the FL task. In scenarios involving numerous data clients within FL, it is often the case that only a subset of clients and datasets are pertinent to a specific learning task, while others might have either a negative or negligible impact on the model training process. This paper introduces a novel privacy-preserving method for evaluating client contributions and selecting relevant datasets without a pre-specified training algorithm in an FL task. Our proposed approach, FedBary, utilizes Wasserstein distance within the federated context, offering a new solution for data valuation in the FL framework. This method ensures transparent data valuation and efficient computation of the Wasserstein barycenter and reduces the dependence on validation datasets. Through extensive empirical experiments and theoretical analyses, we demonstrate the advantages of this data valuation method as a promising avenue for FL research. Codes are available at https://github.com/muz1lee/MOTdata.

For agents

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

get_harvested_code_for_paper("Li_Data_Valuation_and_Detections_in_Federated_Learning_CVPR_2024_paper")
get_code_for_paper("Li_Data_Valuation_and_Detections_in_Federated_Learning_CVPR_2024_paper")
have("Li_Data_Valuation_and_Detections_in_Federated_Learning_CVPR_2024_paper")

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

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

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

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

Connect an agent — have() is free.