SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1510.01784 · 2015

VBPR: Visual Bayesian Personalized Ranking from Implicit Feedback

arXiv · PDF · Open in the Atlas

Code that ran

24 of 28 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 21 have no contract verdict; 2 failures of our instrument; 4 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/1510.01784.json · badge: /api/ran/1510.01784.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
ialab-puc/CuratorNet community (classifier label)
classifier basis not recorded on the link
13 ran · 2 no recorded run
jchanxtarov/vbpr community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
domainxz/top-k-rec reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
abkds/r-ecommender community (classifier label)
classifier basis not recorded on the link
2 ran · 2 no recorded run
FunctionStatusWhere it lives
avg_similarity Ran
ran on a synthesized input
ialab-puc/CuratorNet/src/ExperimentUtils.py
code served (permissive licence) · get_code("61807b2765b1f5cd")
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)

# art: a single item that will be passed to sim()
# arts: a collection of items to compare against
# sim: a callable that takes two items and returns a scalar similarity

# Based on the function body:
# - sim is called as sim(art, a) for each a in arts
# - arts must support iteration and len()
# - sim must return numeric values that can be summed and divided

# Create simple tensor representations
art = torch.randn(4)
arts = [torch.randn(4) for _ in range(2)]

# Create a similarity function that works with tensors
def sim(x, y):
    """Compute cosine similarity between two vectors"""
    return torch.nn.functional.cosine_similarity(x.unsqueeze(0), y.unsqueeze(0)).item()

ARGS = {
    "art": art,
    "arts": arts,
    "sim": sim
}
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
avgsimtopk Ran
ran on a synthesized input
ialab-puc/CuratorNet/src/ExperimentUtils.py
code served (permissive licence) · get_code("63b4dbd1b7065ac1")
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 heapq

torch.manual_seed(0)

# Define a simple similarity function that computes cosine similarity
def sim_func(art, a):
    """Compute cosine similarity between two vectors."""
    dot_product = torch.dot(art, a)
    norm_art = torch.norm(art)
    norm_a = torch.norm(a)
    if norm_art == 0 or norm_a == 0:
        return 0.0
    return (dot_product / (norm_art * norm_a)).item()

# Create sample articles (small tensors)
art = torch.randn(4)  # query article, dimension 4
arts = [torch.randn(4) for _ in range(6)]  # 6 articles to search over

k = 3  # top-k value

ARGS = {
    "art": art,
    "arts": arts,
    "sim": sim_func,
    "k": k
}
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
compute_hit Ran
ran on a synthesized input
jchanxtarov/vbpr/src/utils/metrics.py
code served (permissive licence) · get_code("d7f1a1d88c632dba")
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 numpy as np

# Create a small hits matrix
# Shape: (num_samples, num_items)
# Each row represents whether an item was hit (1) or not (0)
hits = np.array([
    [1, 0, 1, 0],
    [0, 1, 1, 1],
], dtype=np.float32)

# List of k values to compute hits@k for
list_k = [1, 2, 3]

ARGS = {
    "hits": hits,
    "list_k": list_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 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
compute_metrics Ran
ran on a synthesized input
jchanxtarov/vbpr/src/utils/metrics.py
code served (permissive licence) · get_code("f0b3399bc691065c")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch as th

th.manual_seed(0)

# Define test data
num_users = 2
num_items = 4

# Create a scores matrix (users x items) as a torch tensor
matrix_scores = th.randn(num_users, num_items)

# Define dictionaries for training and test positive items
dict_train_pos = {
    0: [0],  # user 0 has item 0 in training set
    1: [1, 2]  # user 1 has items 1, 2 in training set
}

dict_test_pos = {
    0: [2, 3],  # user 0 has items 2, 3 in test set
    1: [0, 3]  # user 1 has items 0, 3 in test set
}

# Define users and items lists
users = [0, 1]
items = [0, 1, 2, 3]

# Define list_k (cutoff values for evaluation metrics)
list_k = [1, 2]

# Define is_predict flag
is_predict = False

ARGS = {
    'matrix_scores': matrix_scores,
    'dict_train_pos': dict_train_pos,
    'dict_test_pos': dict_test_pos,
    'users': users,
    'items': items,
    'list_k': list_k,
    'is_predict': is_predict
}
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 — 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
compute_precision Ran
ran on a synthesized input
jchanxtarov/vbpr/src/utils/metrics.py
code served (permissive licence) · get_code("ddc18fe321d7784d")
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 numpy as np

# Create a small hits array
# Shape: (batch_size=2, num_items=4)
# Each row represents hits (binary indicators) for a user
# Values should be 0 or 1 to represent hit/miss
hits = np.array([
    [1, 0, 1, 0],
    [1, 1, 0, 1]
], dtype=np.float32)

# Create a list of k values to compute precision at
list_k = [1, 2, 3]

ARGS = {
    "hits": hits,
    "list_k": list_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 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
concatenate_featmats Ran
ran on a synthesized input
ialab-puc/CuratorNet/src/utils.py
code served (permissive licence) · get_code("70621ec07f011e54")
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 2, dtype family float, shape (3, 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

# Create small feature matrices with distinct dimensions
featmat_1 = np.random.randn(5, 3).astype(np.float32)  # 5 artworks, 3 features
featmat_2 = np.random.randn(5, 2).astype(np.float32)  # 5 artworks, 2 features
featmat_list = [featmat_1, featmat_2]

# Create id2index mappings for each feature matrix
id2index_1 = {'art_0': 0, 'art_1': 1, 'art_2': 2, 'art_3': 3, 'art_4': 4}
id2index_2 = {'art_0': 0, 'art_1': 1, 'art_2': 2, 'art_3': 3, 'art_4': 4}
id2index_list = [id2index_1, id2index_2]

# Create artwork_ids list (subset or full set of IDs)
artwork_ids = ['art_0', 'art_1', 'art_2']

ARGS = {
    'artwork_ids': artwork_ids,
    'featmat_list': featmat_list,
    'id2index_list': id2index_list
}
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 2, dtype family float, shape (3, 5) — shape (3, 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
f1score Ran
ran on a synthesized input
ialab-puc/CuratorNet/src/MetricsUtils.py
code served (permissive licence) · get_code("a0b689675bdacf61")
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)

# Analyzing f1score function:
# - ground_truth_indexes: iterable of integers, compared with integer k
# - k: integer used as threshold
# The function computes F1 score for top-k retrieval evaluation

# ground_truth_indexes should be a list/array of integers representing indices of relevant items
# k should be an integer representing the cutoff position

ground_truth_indexes = [1, 3, 5, 8, 12]  # Some relevant item indices
k = 10  # Top-k cutoff position

ARGS = {
    "ground_truth_indexes": ground_truth_indexes,
    "k": k,
}
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
generate_minibatches Ran
ran on a synthesized input
ialab-puc/CuratorNet/src/training.py
code served (permissive licence) · get_code("a394696807cb4ee4")
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 dict. 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

# Create sample tuples in the format expected by generate_minibatches
# Each tuple is (profile_indices, positive_index, negative_index)
# where profile_indices is a list of integers

tuples = [
    ([1, 2], 10, 20),           # profile with 2 items
    ([3, 4, 5], 11, 21),        # profile with 3 items
    ([6], 12, 22),              # profile with 1 item
    ([7, 8, 9, 10], 13, 23),    # profile with 4 items
    ([11, 12], 14, 24),         # profile with 2 items
    ([13], 15, 25),             # profile with 1 item
]

max_users_items_per_batch = 20

ARGS = {
    "tuples": tuples,
    "max_users_items_per_batch": max_users_items_per_batch,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
generate_path_log_file Ran
ran on a synthesized input
jchanxtarov/vbpr/src/utils/helpers.py
code served (permissive licence) · get_code("f25788e7d11a876a")
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

ARGS = {
    'name_data': 'cifar10',
    'name_model': 'resnet18',
    'uniqid': 'exp_001'
}
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 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
generate_path_model_file Ran
ran on a synthesized input
jchanxtarov/vbpr/src/utils/helpers.py
code served (permissive licence) · get_code("2f2eaa7252d7b165")
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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "name_data": "cifar10",
    "name_model": "resnet18",
    "epoch": 42,
    "uniqid": "abc123def456"
}
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 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
generate_path_pretrain_file Ran
ran on a synthesized input
jchanxtarov/vbpr/src/utils/helpers.py
code served (permissive licence) · get_code("7a69b58821a6c1ff")
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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'name_data': 'experiment_001',
    'filename': 'model_checkpoint.pt'
}
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 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
get_decaying_learning_rates Ran
ran on a synthesized input
ialab-puc/CuratorNet/src/utils.py
code served (permissive licence) · get_code("fdea0af4a99f1be7")
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 torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    "maxlr": 0.1,
    "minlr": 0.001,
    "decay_coef": 0.5
}
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 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
get_ids Ran
ran; our contract draft was wrong, not the code
domainxz/top-k-rec/evaluate.py
pointer only (licence: GPL-3.0) · get_code("90e0988708b2beae")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, domainxz/top-k-rec, is not in the permissive set Syntology serves inline. 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.

get_ivt Ran
ran; our contract draft was wrong, not the code
domainxz/top-k-rec/evaluate.py
pointer only (licence: GPL-3.0) · get_code("5769e55ef1d628c1")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, domainxz/top-k-rec, is not in the permissive set Syntology serves inline. 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.

get_mat Ran
ran, honoured the contract we drafted
domainxz/top-k-rec/evaluate.py
pointer only (licence: GPL-3.0) · get_code("1788073a5240d1a6")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, domainxz/top-k-rec, is not in the permissive set Syntology serves inline. 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.

highlight_topk_column_values Ran
ran on a synthesized input
ialab-puc/CuratorNet/src/LatexUtils.py
code served (permissive licence) · get_code("1177ef2517aa155e")
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 re

# Create a minimal LaTeX table string with numbers in the expected format
# The regex looks for numbers between & and & or & and \
latex_table_string = r"""
\begin{tabular}{cc}
& 0.95 & 0.42 \\
& 0.87 & 0.53 \\
& 0.76 & 0.88 \\
\end{tabular}
"""

n_cols = 2
k = 1
command = 'bold'

ARGS = {
    'latex_table_string': latex_table_string,
    'n_cols': n_cols,
    'k': k,
    'command': command,
}
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 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
index_to_item Ran
ran on a synthesized input
abkds/r-ecommender/utils.py
code served (permissive licence) · get_code("42e49e4b1975ed10")
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 (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 numpy as np

# Analyze the function:
# - Takes `index` parameter
# - Calls len(index) - so index must have a length
# - Iterates over index.items() - so index must be dict-like with .items() method
# - Uses item as a value to assign to things[idx]
# - Uses idx as an integer index into things array
# The function maps from item keys to positional indices in output array

# Create a simple dict with string keys and integer values (indices)
index_dict = {
    "apple": 0,
    "banana": 1,
    "cherry": 2,
    "date": 3
}

ARGS = {
    "index": index_dict
}
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 (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
item_to_index Ran
ran on a synthesized input
abkds/r-ecommender/utils.py
code served (permissive licence) · get_code("a68a3afeb813a11d")
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 dict. 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

torch.manual_seed(0)

# The function item_to_index takes an iterable 'things' and creates a dictionary
# mapping each item to its index in the enumeration.
# It iterates through items, so 'things' should be an iterable.

ARGS = {
    "things": ["apple", "banana", "cherry", "date"]
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
max_similarity Ran
ran on a synthesized input
ialab-puc/CuratorNet/src/ExperimentUtils.py
code served (permissive licence) · get_code("9bbb3c15f48bb2a3")
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)

# art: a single item to compare
art = torch.randn(4)

# arts: a collection of items to compare against
arts = [torch.randn(4), torch.randn(4)]

# sim: a callable that takes two items and returns a similarity score
def sim(item1, item2):
    # Compute cosine similarity between two items
    return torch.nn.functional.cosine_similarity(
        item1.unsqueeze(0), 
        item2.unsqueeze(0)
    ).item()

ARGS = {
    "art": art,
    "arts": arts,
    "sim": sim
}
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
numpy_array_feature_matrix Ran
ran on a synthesized input
ialab-puc/CuratorNet/src/FeatureUtils.py
code served (permissive licence) · get_code("2d7702b062a6b2a6")
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 2, dtype family float, shape (3, 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 numpy as np

class Artwork:
    def __init__(self, id, index):
        self.id = id
        self.index = index

# Create feature matrix (5 artworks, 4 features each)
feature_matrix = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0],
    [9.0, 10.0, 11.0, 12.0],
    [13.0, 14.0, 15.0, 16.0],
    [17.0, 18.0, 19.0, 20.0]
], dtype=np.float32)

# Map artwork IDs to indices in feature_matrix
feature_id2index = {
    'art_0': 0,
    'art_1': 1,
    'art_2': 2,
    'art_3': 3,
    'art_4': 4
}

# Create artwork objects with id and index attributes
artworks = [
    Artwork(id='art_0', index=0),
    Artwork(id='art_2', index=1),
    Artwork(id='art_4', index=2)
]

ARGS = {
    'feature_matrix': feature_matrix,
    'feature_id2index': feature_id2index,
    'artworks': artworks
}
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 2, dtype family float, shape (3, 4) — shape (3, 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
precision Ran
ran on a synthesized input
ialab-puc/CuratorNet/src/MetricsUtils.py
code served (permissive licence) · get_code("92cec5bb48aca1b3")
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)

# The function `precision` takes:
# - ground_truth_indexes: an iterable of integers that are compared against k
# - k: an integer used as a threshold and divisor

# Based on the function body:
# - ground_truth_indexes is iterated over
# - each element i is compared with k (i >= k)
# - the function counts elements less than k
# - returns count / k

# Create test arguments
ground_truth_indexes = [0, 1, 2, 5, 8]  # A list of indices where some are < k and some >= k
k = 4  # Threshold value; we expect 3 elements (0, 1, 2) are < k

ARGS = {
    "ground_truth_indexes": ground_truth_indexes,
    "k": k
}
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
read_ids_file Ran
ran on a synthesized input
ialab-puc/CuratorNet/src/FeatureUtils.py
code served (permissive licence) · get_code("0fccbe2f41afc724")
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 directory and a test ids file
temp_dir = tempfile.mkdtemp()
ids_filename = "test_ids.txt"
ids_filepath = os.path.join(temp_dir, ids_filename)

# Write some test IDs to the file
test_ids = ["id_001", "id_002", "id_003", "id_004"]
with open(ids_filepath, 'w') as f:
    for _id in test_ids:
        f.write(_id + "\n")

ARGS = {
    "dirpath": temp_dir,
    "ids_filename": ids_filename
}
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
read_numpy_features_matrix Ran
ran on a synthesized input
ialab-puc/CuratorNet/src/FeatureUtils.py
code served (permissive licence) · get_code("9d7fcd3ad029ccd5")
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 dict. 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
import numpy as np

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

# Create a valid IDs file
ids_content = "id_001\nid_002\nid_003\n"
ids_filepath = os.path.join(tmpdir, "test_ids.txt")
with open(ids_filepath, 'w') as f:
    f.write(ids_content)

# Create a valid numpy features matrix file
features_array = np.random.randn(3, 4).astype(np.float32)
features_filepath = os.path.join(tmpdir, "test_features.npy")
np.save(features_filepath, features_array)

ARGS = {
    "dirpath": tmpdir,
    "feat_filename": "test_features.npy",
    "ids_filename": "test_ids.txt"
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
recall Ran
ran on a synthesized input
ialab-puc/CuratorNet/src/MetricsUtils.py
code served (permissive licence) · get_code("5be651833f773d2a")
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)

# Analyzing the function:
# - ground_truth_indexes: expects an iterable that can be looped over
#   The function checks if each element i >= k and breaks, then counts elements
#   Finally divides by len(ground_truth_indexes)
# - k: a numeric threshold to compare against

# ground_truth_indexes should be a list/array of integers
ground_truth_indexes = [0, 1, 2, 5, 8]

# k should be an integer threshold
k = 3

ARGS = {
    "ground_truth_indexes": ground_truth_indexes,
    "k": k
}
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
BPRLoss Not yet run
unverified (harvested, no recorded run)
abkds/r-ecommender/bpr.py
code served (permissive licence) · get_code("eb626d870164a4bf")
How it ran

no invocation recorded.

auc Not yet run
unverified (harvested, no recorded run)
abkds/r-ecommender/utils.py
code served (permissive licence) · get_code("8a2d50da5ce02f98")
How it ran

no invocation recorded.

load_embeddings_and_ids Not yet run
unverified (harvested, no recorded run)
ialab-puc/CuratorNet/src/utils.py
code served (permissive licence) · get_code("9894d362d6bb4724")
How it ran

no invocation recorded.

print_best_experiments_summary_table Not yet run
unverified (harvested, no recorded run)
ialab-puc/CuratorNet/src/LatexUtils.py
code served (permissive licence) · get_code("c8f2a04e02428a0e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 28 samples lifted from this paper's linked repositories, 28 carry a function identity and 0 do not. Of the 28 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 0 later) and 23 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
compute_hit 1 other paper
1 dated earlier
1205.2618 (2012-05)
BPR: Bayesian Personalized Ranking from Implicit Feedback
compute_precision 1 other paper
1 dated earlier
1205.2618 (2012-05)
BPR: Bayesian Personalized Ranking from Implicit Feedback
generate_path_log_file 1 other paper
1 dated earlier
1205.2618 (2012-05)
BPR: Bayesian Personalized Ranking from Implicit Feedback
generate_path_model_file 1 other paper
1 dated earlier
1205.2618 (2012-05)
BPR: Bayesian Personalized Ranking from Implicit Feedback
generate_path_pretrain_file 1 other paper
1 dated earlier
1205.2618 (2012-05)
BPR: Bayesian Personalized Ranking from Implicit Feedback

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

Modern recommender systems model people and items by discovering or `teasing apart' the underlying dimensions that encode the properties of items and users' preferences toward them. Critically, such dimensions are uncovered based on user feedback, often in implicit form (such as purchase histories, browsing logs, etc.); in addition, some recommender systems make use of side information, such as product attributes, temporal information, or review text. However one important feature that is typically ignored by existing personalized recommendation and ranking methods is the visual appearance of the items being considered. In this paper we propose a scalable factorization model to incorporate visual signals into predictors of people's opinions, which we apply to a selection of large, real-world datasets. We make use of visual features extracted from product images using (pre-trained) deep networks, on top of which we learn an additional layer that uncovers the visual dimensions that best explain the variation in people's feedback. This not only leads to significantly more accurate personalized ranking methods, but also helps to alleviate cold start issues, and qualitatively to analyze the visual dimensions that influence people's opinions.

For agents

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

get_harvested_code_for_paper("1510.01784")
get_code_for_paper("1510.01784")
have("1510.01784")

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

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

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

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

Connect an agent — have() is free.