SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1801.10242 · 2018

Low-Rank Bandit Methods for High-Dimensional Dynamic Pricing

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 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 0 have no contract verdict; 2 failures of our instrument; 1 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/1801.10242.json · badge: /api/ran/1801.10242.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
jwmueller/BanditDynamicPricing reimplementation (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
FunctionStatusWhere it lives
GDG Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jwmueller/BanditDynamicPricing/BanditPricing.py
code served (permissive licence) · get_code("ada9969a8479276c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

np.random.seed(0)

# Set up arguments for GDG function
dimension = 4
initial_price = np.array([0.5, 0.3, 0.2, 0.1])
random_unit_vector = np.random.normal(size=dimension)
random_unit_vector = random_unit_vector / np.linalg.norm(random_unit_vector)

ARGS = {
    'R_prev': -0.15,
    'eta': 0.01,
    'delta': 0.05,
    's_radius': 1.0,
    'prev_state': (initial_price, random_unit_vector)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — 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
OPOK Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jwmueller/BanditDynamicPricing/BanditPricing.py
code served (permissive licence) · get_code("4b5d64da1e73de1e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(42)

# Parameters for OPOK function
R_prev = 0.5  # Previously observed negative revenue (float)
eta = 0.1  # Positive learning rate (float)
delta = 0.05  # Positive exploration parameter (float)
s_radius = 1.0  # Positive radius of constraint set (float)

# Create U: N x d matrix of orthonormal product features
# Using QR decomposition to ensure orthonormality
# Let's use N=5 (number of products) and d=4 (feature dimension)
N = 5
d = 4
U_random = np.random.randn(N, d)
U, _ = np.linalg.qr(U_random)  # QR decomposition gives orthonormal columns
U = U[:, :d]  # Ensure U is N x d with orthonormal columns

# Create initial state: (x_prev_clean, xi_prev, p_prev)
# x_prev_clean should be in R^d (feature space)
x_prev_clean = np.random.randn(d) * 0.5  # Small initial state
xi_prev = np.random.randn(d)
xi_prev = xi_prev / np.linalg.norm(xi_prev)  # Normalize to unit vector

# p_prev should be a valid price (in the price space)
# It should satisfy: U^T @ p_prev = x_prev_clean (approximately)
p_prev = np.dot(U, x_prev_clean)

prev_state = (x_prev_clean, xi_prev, p_prev)

# Construct ARGS dictionary
ARGS = {
    'R_prev': R_prev,
    'eta': eta,
    'delta': delta,
    's_radius': s_radius,
    'U': U,
    'prev_state': prev_state
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — 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
OPOKprevprice Not yet run
unverified (harvested, no recorded run)
jwmueller/BanditDynamicPricing/BanditPricing.py
code served (permissive licence) · get_code("963ac60a28d42f89")
How it ran

no invocation recorded.

Also present in other papers' code

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

We consider dynamic pricing with many products under an evolving but low-dimensional demand model. Assuming the temporal variation in cross-elasticities exhibits low-rank structure based on fixed (latent) features of the products, we show that the revenue maximization problem reduces to an online bandit convex optimization with side information given by the observed demands. We design dynamic pricing algorithms whose revenue approaches that of the best fixed price vector in hindsight, at a rate that only depends on the intrinsic rank of the demand model and not the number of products. Our approach applies a bandit convex optimization algorithm in a projected low-dimensional space spanned by the latent product features, while simultaneously learning this span via online singular value decomposition of a carefully-crafted matrix containing the observed demands.

For agents

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

get_harvested_code_for_paper("1801.10242")
get_code_for_paper("1801.10242")
have("1801.10242")

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

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

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

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

Connect an agent — have() is free.