SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1111.6085 · 2011

Automatic Relevance Determination in Nonnegative Matrix Factorization with the β-Divergence

arXiv · PDF · Open in the Atlas

Code that ran

6 of 17 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; 11 no recorded run), measured 2026-11-21; 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/1111.6085.json · badge: /api/ran/1111.6085.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
broadinstitute/getzlab-SignatureAnalyzer community (classifier label)
classifier basis not recorded on the link
5 ran · 7 no recorded run
broadinstitute/SignatureAnalyzer-GPU community (classifier label)
classifier basis not recorded on the link
1 ran · 4 no recorded run
FunctionStatusWhere it lives
cosine_similarity_plot Ran
ran on a synthesized input
broadinstitute/getzlab-SignatureAnalyzer/signatureanalyzer/plotting/_cosine.py
code served (permissive licence) · get_code("efbc49b22f9de573")
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 Figure. 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 pandas as pd
import numpy as np

# Create a small sample cosine similarity matrix
# Shape: (4 rows for components, 5 columns for signatures)
# Values should be between 0 and 1 as they represent cosine similarities
np.random.seed(0)
cosine_similarity_data = np.random.uniform(0.75, 1.0, size=(4, 5))

# Create DataFrame with meaningful index and column names
component_names = [f'Component_{i}' for i in range(4)]
signature_names = [f'Signature_{j}' for j in range(5)]

cosine_similarity_matrix = pd.DataFrame(
    cosine_similarity_data,
    index=component_names,
    columns=signature_names
)

ARGS = {
    'cosine_similarity_matrix': cosine_similarity_matrix
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, pandas, scipy, seaborn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Figure — a Figure output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Figure 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
file_loader Ran
ran on a synthesized input
broadinstitute/getzlab-SignatureAnalyzer/signatureanalyzer/utils.py
code served (permissive licence) · get_code("51f57da25bfa56d6")
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 DataFrame. 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 pandas as pd
import tempfile
import os

# Create a temporary CSV file for testing
temp_dir = tempfile.mkdtemp()
csv_file = os.path.join(temp_dir, 'test.csv')

# Create a simple CSV with an index column
df = pd.DataFrame({
    'A': [1, 2, 3],
    'B': [4, 5, 6],
    'C': [7, 8, 9]
})
df.index.name = 'idx'
df.to_csv(csv_file)

ARGS = {
    'x': csv_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family int 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
k_dist Ran
ran on a synthesized input
broadinstitute/getzlab-SignatureAnalyzer/signatureanalyzer/plotting/_nmf.py
code served (permissive licence) · get_code("e644b75169269694")
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 Figure. 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 matplotlib.pyplot as plt
import seaborn as sns
import numpy as np

# Create a small numpy array with integer values suitable for counting
X = np.array([1, 2, 2, 3, 3, 3, 1, 2, 4, 4, 4, 4, 5, 5])

figsize = (8, 8)

ARGS = {
    'X': X,
    'figsize': figsize
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, seaborn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Figure — a Figure output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Figure 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
l2fc Ran
ran on a synthesized input
broadinstitute/getzlab-SignatureAnalyzer/signatureanalyzer/utils.py
code served (permissive licence) · get_code("0758b82a3d3f41eb")
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 DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import pandas as pd

# Create a small sample dataframe with numeric data
# Using shape (4, 3) - 4 features/rows, 3 samples/columns
data = np.array([
    [10.0, 20.0, 30.0],
    [15.0, 25.0, 35.0],
    [5.0, 10.0, 15.0],
    [8.0, 16.0, 24.0]
], dtype=float)

df = pd.DataFrame(
    data,
    index=['gene_1', 'gene_2', 'gene_3', 'gene_4'],
    columns=['sample_A', 'sample_B', 'sample_C']
)

ARGS = {
    'df': df,
    'center': 'median',
    'axis': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
split_negatives Ran
ran on a synthesized input
broadinstitute/getzlab-SignatureAnalyzer/signatureanalyzer/utils.py
code served (permissive licence) · get_code("cffb6cddb2edab2a")
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 DataFrame. 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 pandas as pd
import numpy as np

# Create a small sample DataFrame with mixed positive and negative values
np.random.seed(0)
data = np.array([
    [1.5, -2.3, 0.8, -1.2],
    [-0.5, 3.2, -1.1, 2.1],
    [2.0, -0.9, 1.5, -0.3]
])
x = pd.DataFrame(data, columns=['a', 'b', 'c', 'd'], index=['row1', 'row2', 'row3'])

ARGS = {
    'x': x,
    'tag': '_n',
    'axis': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
write_output Ran
ran on a synthesized input
broadinstitute/SignatureAnalyzer-GPU/SignatureAnalyzer-GPU.py
code served (permissive licence) · get_code("31f7195ff693f079")
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 int64, ndim 0, dtype family int, 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 numpy as np
import tempfile
import os

# Create temporary directory for output
temp_dir = tempfile.mkdtemp()

# Set up small numpy arrays
# W shape: (n_channels, n_factors)
W = np.random.rand(4, 3)

# H shape: (n_factors, n_samples)
H = np.random.rand(3, 5)

# mask shape: (n_channels, n_samples)
mask = np.random.randint(0, 2, size=(4, 5))

# channel_names - list of strings for rows of W
channel_names = ['CH1', 'CH2', 'CH3', 'CH4']

# sample_names - list of strings for columns of H
sample_names = ['S1', 'S2', 'S3', 'S4', 'S5']

# output_directory
output_directory = temp_dir

# label for output files
label = 'test_output'

# active_thresh parameter (optional, has default)
active_thresh = 1e-05

ARGS = {
    'W': W,
    'H': H,
    'mask': mask,
    'channel_names': channel_names,
    'sample_names': sample_names,
    'output_directory': output_directory,
    'label': label,
    'active_thresh': active_thresh
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int64, ndim 0, dtype family int, 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
ardnmf Not yet run
unverified (harvested, no recorded run)
broadinstitute/getzlab-SignatureAnalyzer/signatureanalyzer/bnmf.py
code served (permissive licence) · get_code("c38bcacfdb70afa9")
How it ran

no invocation recorded.

beta_div Not yet run
unverified (harvested, no recorded run)
broadinstitute/SignatureAnalyzer-GPU/NMF_functions.py
code served (permissive licence) · get_code("bdccf6ee69a8b28c")
How it ran

no invocation recorded.

calculate_objective_function Not yet run
unverified (harvested, no recorded run)
broadinstitute/SignatureAnalyzer-GPU/NMF_functions.py
code served (permissive licence) · get_code("c1b8e9f28c95ecee")
How it ran

no invocation recorded.

consensus_cluster Not yet run
unverified (harvested, no recorded run)
broadinstitute/getzlab-SignatureAnalyzer/signatureanalyzer/consensus.py
code served (permissive licence) · get_code("973c7d382f831049")
How it ran

no invocation recorded.

consensus_matrix Not yet run
unverified (harvested, no recorded run)
broadinstitute/getzlab-SignatureAnalyzer/signatureanalyzer/plotting/_nmf.py
code served (permissive licence) · get_code("98778cebbecf0b94")
How it ran

no invocation recorded.

run_method_engine Not yet run
unverified (harvested, no recorded run)
broadinstitute/SignatureAnalyzer-GPU/ARD_NMF.py
code served (permissive licence) · get_code("3dac6aa2e075082f")
How it ran

no invocation recorded.

signature_barplot Not yet run
unverified (harvested, no recorded run)
broadinstitute/getzlab-SignatureAnalyzer/signatureanalyzer/plotting/_muts.py
code served (permissive licence) · get_code("d7167f8240307350")
How it ran

no invocation recorded.

signature_barplot_DBS Not yet run
unverified (harvested, no recorded run)
broadinstitute/getzlab-SignatureAnalyzer/signatureanalyzer/plotting/_muts.py
code served (permissive licence) · get_code("f2ae8878f7f9dc6b")
How it ran

no invocation recorded.

stacked_bar Not yet run
unverified (harvested, no recorded run)
broadinstitute/getzlab-SignatureAnalyzer/signatureanalyzer/plotting/_muts.py
code served (permissive licence) · get_code("38091941c5979afa")
How it ran

no invocation recorded.

supervised_ardnmf Not yet run
unverified (harvested, no recorded run)
broadinstitute/getzlab-SignatureAnalyzer/signatureanalyzer/supervised_bnmf.py
code served (permissive licence) · get_code("85b6ed2c04cea782")
How it ran

no invocation recorded.

update_H_poisson_L1 Not yet run
unverified (harvested, no recorded run)
broadinstitute/SignatureAnalyzer-GPU/NMF_functions.py
code served (permissive licence) · get_code("5e91034ac2316792")
How it ran

no invocation recorded.

Also present in other papers' code

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

Repositories linked to this paper

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

Abstract

This paper addresses the estimation of the latent dimensionality in nonnegative matrix factorization (NMF) with the β-divergence. The β-divergence is a family of cost functions that includes the squared Euclidean distance, Kullback-Leibler and Itakura-Saito divergences as special cases. Learning the model order is important as it is necessary to strike the right balance between data fidelity and overfitting. We propose a Bayesian model based on automatic relevance determination in which the columns of the dictionary matrix and the rows of the activation matrix are tied together through a common scale parameter in their prior. A family of majorization-minimization algorithms is proposed for maximum a posteriori (MAP) estimation. A subset of scale parameters is driven to a small lower bound in the course of inference, with the effect of pruning the corresponding spurious components. We demonstrate the efficacy and robustness of our algorithms by performing extensive experiments on synthetic data, the swimmer dataset, a music decomposition example and a stock price prediction task.

For agents

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

get_harvested_code_for_paper("1111.6085")
get_code_for_paper("1111.6085")
have("1111.6085")

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

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

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

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

Connect an agent — have() is free.