SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2110.10803 · 2021

Propensity-scored Probabilistic Label Trees

arXiv · PDF · Open in the Atlas

Code that ran

6 of 9 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 6 have no contract verdict; 0 failures of our instrument; 3 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/2110.10803.json · badge: /api/ran/2110.10803.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
mwydmuch/napkinXC canonical (classifier label)
classifier basis not recorded on the link
6 ran · 3 no recorded run
FunctionStatusWhere it lives
abandonment_at_k Ran
ran on a synthesized input
mwydmuch/napkinXC/python/napkinxc/metrics.py
code served (permissive licence) · get_code("09c7a81e2a2042fb")
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 (5,) 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
from scipy.sparse import csr_matrix

# Create small ground truth labels as a list of lists of integers
Y_true = [
    [0, 2],
    [1, 3],
]

# Create predicted scores as a 2D numpy array
# Each row represents scores for items, ranking will be calculated by sorting descending
Y_pred = np.array([
    [0.9, 0.1, 0.8, 0.2],
    [0.3, 0.7, 0.4, 0.6],
], dtype=np.float32)

k = 5

ARGS = {
    "Y_true": Y_true,
    "Y_pred": Y_pred,
    "k": k,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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 (5,) — shape (5,) 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
load_json_lines_file Ran
ran on a synthesized input
mwydmuch/napkinXC/python/napkinxc/datasets.py
code served (permissive licence) · get_code("9d6f20eb34ea62a2")
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 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 gzip
import json
import tempfile
import os

# Create a temporary JSON lines file with test data
temp_dir = tempfile.mkdtemp()
test_file = os.path.join(temp_dir, 'test_data.jsonl')

# Write test data to the file
test_data = [
    {'title': 'First', 'content': 'Document one', 'target_ind': 0},
    {'title': 'Second', 'content': 'Document two', 'target_ind': 1},
]

with open(test_file, 'w') as f:
    for item in test_data:
        f.write(json.dumps(item) + '\n')

ARGS = {
    'file': test_file,
    'features_fields': ['title', 'content'],
    'labels_field': 'target_ind',
    'gzip_file': None,
}
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 tuple, ndim 2, 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
load_libsvm Ran
ran on a synthesized input
mwydmuch/napkinXC/experiments/remap_libsvm.py
code served (permissive licence) · get_code("582e069bff7b4d2b")
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 tempfile
import os

# Create a temporary file with LIBSVM format data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.libsvm')
temp_file.write("1 1:0.5 2:1.2 3:0.3\n")
temp_file.write("0,1 1:0.1 2:0.9\n")
temp_file.write(" 1:0.2 2:0.4 3:0.6 4:0.8\n")
temp_file.close()

ARGS = {
    'file': temp_file.name
}
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 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
load_weights_file Ran
ran on a synthesized input
mwydmuch/napkinXC/experiments/scripts_utils.py
code served (permissive licence) · get_code("e6c6a49960349d82")
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 tempfile
import os

# Create a temporary file with float values
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_filepath = temp_file.name

# Write some test float values to the file
test_values = [1.5, 2.3, 3.7, 4.2, 5.1]
for val in test_values:
    temp_file.write(f"{val}\n")
temp_file.close()

ARGS = {
    'filepath': temp_filepath
}
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
precision_at_k Ran
ran on a synthesized input
mwydmuch/napkinXC/python/napkinxc/metrics.py
code served (permissive licence) · get_code("b1b53d35e01074c8")
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
from scipy.sparse import csr_matrix

# Small example data for precision_at_k
# Y_true: ground truth labels (which items are relevant)
# Y_pred: predicted scores for items

# Example 1: Using numpy arrays
# Y_true as binary matrix (2 samples, 4 items)
Y_true_np = np.array([
    [1, 0, 1, 0],
    [0, 1, 1, 0]
])

# Y_pred as score matrix (2 samples, 4 items)
Y_pred_np = np.array([
    [0.9, 0.7, 0.8, 0.2],
    [0.3, 0.6, 0.8, 0.1]
])

# Example 2: Using sparse matrices
Y_true_sparse = csr_matrix(np.array([
    [1, 0, 1, 0],
    [0, 1, 1, 0]
]))

Y_pred_sparse = csr_matrix(np.array([
    [0, 1, 1, 0],
    [1, 1, 0, 0]
]))

# Example 3: Using list of lists
Y_true_list = [
    [0, 2],      # sample 1: items 0 and 2 are relevant
    [1, 2]       # sample 2: items 1 and 2 are relevant
]

Y_pred_list = [
    [2, 0, 1, 3],   # sample 1: ranking prediction
    [2, 1, 3, 0]    # sample 2: ranking prediction
]

ARGS = {
    'Y_true': Y_true_list,
    'Y_pred': Y_pred_list,
    'k': 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
recall_at_k Ran
ran on a synthesized input
mwydmuch/napkinXC/python/napkinxc/metrics.py
code served (permissive licence) · get_code("8422a0907e5bc01a")
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 (5,) 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
from scipy.sparse import csr_matrix

# Create small ground truth data
# Using a list of lists format with true label indices
Y_true = [
    [0, 2],      # sample 0: labels 0 and 2 are relevant
    [1, 3],      # sample 1: labels 1 and 3 are relevant
]

# Create small predicted scores
# Using numpy array format with scores for each label
Y_pred = np.array([
    [0.9, 0.1, 0.8, 0.2],   # sample 0: scores for 4 labels
    [0.3, 0.7, 0.2, 0.6],   # sample 1: scores for 4 labels
])

ARGS = {
    'Y_true': Y_true,
    'Y_pred': Y_pred,
    'k': 5,
    'zero_division': 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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 (5,) — shape (5,) 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
load_libsvm_file Not yet run
unverified (harvested, no recorded run)
mwydmuch/napkinXC/python/napkinxc/datasets.py
code served (permissive licence) · get_code("d3be44a27979e1f5")
How it ran

no invocation recorded.

load_pred_file Not yet run
unverified (harvested, no recorded run)
mwydmuch/napkinXC/experiments/scripts_utils.py
code served (permissive licence) · get_code("7788dfbda29d483e")
How it ran

no invocation recorded.

load_true_file Not yet run
unverified (harvested, no recorded run)
mwydmuch/napkinXC/experiments/scripts_utils.py
code served (permissive licence) · get_code("09611ee39853bc0c")
How it ran

no invocation recorded.

Also present in other papers' code

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

Extreme multi-label classification (XMLC) refers to the task of tagging instances with small subsets of relevant labels coming from an extremely large set of all possible labels. Recently, XMLC has been widely applied to diverse web applications such as automatic content labeling, online advertising, or recommendation systems. In such environments, label distribution is often highly imbalanced, consisting mostly of very rare tail labels, and relevant labels can be missing. As a remedy to these problems, the propensity model has been introduced and applied within several XMLC algorithms. In this work, we focus on the problem of optimal predictions under this model for probabilistic label trees, a popular approach for XMLC problems. We introduce an inference procedure, based on the $A^*$-search algorithm, that efficiently finds the optimal solution, assuming that all probabilities and propensities are known. We demonstrate the attractiveness of this approach in a wide empirical study on popular XMLC benchmark datasets.

For agents

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

get_harvested_code_for_paper("2110.10803")
get_code_for_paper("2110.10803")
have("2110.10803")

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

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

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

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

Connect an agent — have() is free.