SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1605.06796 · 2016

Interpretable Distribution Features with Maximum Testing Power

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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 3 have no contract verdict; 1 failure of our instrument; 0 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/1605.06796.json · badge: /api/ran/1605.06796.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
wittawatj/interpretable-test canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
constrain Ran
ran, honoured the contract we drafted
wittawatj/interpretable-test/freqopttest/util.py
pointer only (licence: MIT); the stored copy get_code serves, from 360ZMEM/USV-AUV-colab, is pointer only (licence: NONE) · get_code("ddfbb453cd322c02")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from 360ZMEM/USV-AUV-colab, and GitHub detected no licence in that repository when it was checked. 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.

dist_matrix Ran
ran on a synthesized input
wittawatj/interpretable-test/freqopttest/util.py
code served (permissive licence) · get_code("02fb3015fa5b11ba")
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 (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 autograd.numpy as np

# Create small numpy arrays for X and Y
# X: shape (2, 4) - 2 samples, 4 dimensions
# Y: shape (3, 4) - 3 samples, 4 dimensions
X = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=np.float32)

Y = np.array([
    [1.5, 2.5, 3.5, 4.5],
    [5.5, 6.5, 7.5, 8.5],
    [0.5, 1.5, 2.5, 3.5]
], dtype=np.float32)

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
autograd — 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 (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
generic_grid_search_gwidth Ran
ran on a synthesized input
wittawatj/interpretable-test/freqopttest/tst.py
code served (permissive licence) · get_code("bdab2f3413030cef")
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 autograd.numpy as np
import scipy.stats as stats

class MockTestData:
    """Mock test data object with xy() method"""
    def __init__(self, X, Y):
        self._X = X
        self._Y = Y
    
    def xy(self):
        return self._X, self._Y

def mock_nc_param(X, Y, T, gwidth, reg=0):
    """
    Mock function that computes non-centrality parameter.
    Takes X (n_samples x d_X), Y (n_samples x d_Y), T (n_test x d_X), 
    gwidth (scalar), and reg (scalar).
    Returns a positive scalar non-centrality parameter.
    """
    # Simple mock: return a positive value based on data shapes
    n_samples = X.shape[0]
    n_test = T.shape[0]
    d = X.shape[1]
    # Return a positive non-centrality parameter
    lamb = float(n_samples * n_test * d / (gwidth + 1.0))
    return lamb

# Create small test data
np.random.seed(0)
X = np.random.randn(2, 4)  # 2 samples, 4 dimensions
Y = np.random.randn(2, 3)  # 2 samples, 3 dimensions
T = np.random.randn(5, 4)  # 5 test locations, 4 dimensions

tst_data = MockTestData(X, Y)
T = T
df = 10  # degrees of freedom for chi2
list_gwidth = [0.5, 1.0, 2.0, 5.0]  # list of bandwidths to search
alpha = 0.05  # significance level
func_nc_param = mock_nc_param  # function to compute non-centrality parameter

ARGS = {
    'tst_data': tst_data,
    'T': T,
    'df': df,
    'list_gwidth': list_gwidth,
    'alpha': alpha,
    'func_nc_param': func_nc_param,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
autograd, scipy — 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
generic_nc_parameter Ran
ran on a synthesized input
wittawatj/interpretable-test/freqopttest/tst.py
code served (permissive licence) · get_code("fc6f454b57b6732d")
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 float64, ndim 0, 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 autograd.numpy as np

# Create sample data Z with shape (n_samples, n_features)
# The function expects Z to be a 2D array where rows are samples
np.random.seed(0)
n_samples = 10
n_features = 4
Z = np.random.randn(n_samples, n_features)

ARGS = {
    'Z': Z,
    'reg': 'auto'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
autograd — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
meddistance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wittawatj/interpretable-test/freqopttest/util.py
code served (permissive licence) · get_code("510b23d175dd9853")
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 float64, ndim 0, 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 autograd.numpy as np

# Create a small sample matrix X with shape (4, 3)
# This represents 4 points in 3-dimensional space
np.random.seed(0)
X = np.random.randn(4, 3).astype(np.float64)

# Define ARGS dict with all parameters for meddistance function
ARGS = {
    "X": X,
    "subsample": None,
    "mean_on_fail": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
autograd — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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

Also present in other papers' code

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

FunctionAlso present inEarliest-datedOthers named
meddistance 2 other papers
2 later
1910.12252 (2019-10)
Kernel Stein Tests for Multiple Model Comparison
2211.04446 (2022-11)
Private Set Generation with Discriminative Information
constrain 1 other paper
1 later
aaai_35317 (2025 (year only))
UACOF: A USV-AUV Collaboration Framework for Underwater Tasks under Extreme Sea Conditions (Student Abstract)

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

Two semimetrics on probability distributions are proposed, given as the sum of differences of expectations of analytic functions evaluated at spatial or frequency locations (i.e, features). The features are chosen so as to maximize the distinguishability of the distributions, by optimizing a lower bound on test power for a statistical test using these features. The result is a parsimonious and interpretable indication of how and where two distributions differ locally. An empirical estimate of the test power criterion converges with increasing sample size, ensuring the quality of the returned features. In real-world benchmarks on high-dimensional text and image data, linear-time tests using the proposed semimetrics achieve comparable performance to the state-of-the-art quadratic-time maximum mean discrepancy test, while returning human-interpretable features that explain the test results.

For agents

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

get_harvested_code_for_paper("1605.06796")
get_code_for_paper("1605.06796")
have("1605.06796")

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

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

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

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

Connect an agent — have() is free.