SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1910.13565 · 2019

Function-Space Distributions over Kernels

arXiv · PDF · Open in the Atlas

Code that ran

3 of 7 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 3 have no contract verdict; 0 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/1910.13565.json · badge: /api/ran/1910.13565.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
wjmaddox/spectralgp canonical (classifier label)
classifier basis: census
3 ran · 4 no recorded run
FunctionStatusWhere it lives
get_spectral_density_from_kernel Ran
ran on a synthesized input
wjmaddox/spectralgp/spectralgp/kernels/recover_spectral_density.py
code served (permissive licence) · get_code("1930b24f314c84ca")
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 torch
import gpytorch
import math

torch.manual_seed(0)

# Create a simple custom kernel for testing the non-SpectralMixtureKernel path
class SimpleKernel(gpytorch.kernels.Kernel):
    is_stationary = True
    
    def forward(self, x1, x2, diag=False, **kwargs):
        # x1 shape: (n, 1), x2 shape: (m, 1)
        # Return a kernel matrix of shape (n, m)
        if diag:
            return torch.ones(x1.size(0))
        else:
            return torch.ones(x1.size(0), x2.size(0))

# Instantiate the kernel
kernel = SimpleKernel()

# Create a SpectralMixtureKernel for alternative testing
class MockSpectralMixtureKernel:
    def __init__(self):
        self.mixture_scales = torch.tensor([0.5, 0.3])
        self.mixture_means = torch.tensor([1.0, 2.0])
        self.mixture_weights = torch.tensor([0.6, 0.4])

# Using SimpleKernel for the main test
ARGS = {
    "kernel": kernel,
    "locs": 50,
    "base": torch.zeros(1, 1),
    "s_range": 2.0,
    "omg": None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
gpytorch, torch — 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
spectral_init Ran
ran on a synthesized input
wjmaddox/spectralgp/spectralgp/utils.py
code served (permissive licence) · get_code("76596535e6d7058d")
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 torch
import numpy as np

torch.manual_seed(0)

# Create small tensors for x and y
# x should be a 1D tensor of increasing values (used for spacing calculation)
# y should be a 1D tensor of same length (used for periodogram)
x = torch.linspace(0, 10, 50)
y = torch.sin(x) + 0.1 * torch.randn(50)

ARGS = {
    'x': x,
    'y': y,
    'spacing': 'even',
    'num_freq': 500,
    'omega_lim': None,
    'rtn_oneside': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — 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
update_parameters Ran
ran on a synthesized input
wjmaddox/spectralgp/spectralgp/utils.py
code served (permissive licence) · get_code("8a07ed92d240ca8b")
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
import torch.nn as nn

torch.manual_seed(0)

# The function iterates over params_to_update.keys() and assigns values to param_dict
# So we need:
# - object: can be any object (not used in the function body)
# - params_to_update: a dict with string keys and values to update
# - param_dict: a dict that will be updated with the new parameters

class DummyObject:
    pass

object = DummyObject()

params_to_update = {
    'learning_rate': 0.001,
    'weight_decay': 1e-5,
    'momentum': 0.9,
    'batch_size': 32
}

param_dict = {
    'optimizer': 'adam',
    'epochs': 100
}

ARGS = {
    'object': object,
    'params_to_update': params_to_update,
    'param_dict': param_dict
}
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
ess_factory Not yet run
unverified (harvested, no recorded run)
wjmaddox/spectralgp/spectralgp/sampling_factories.py
code served (permissive licence) · get_code("2cba0dcbcb8c1a31")
How it ran

no invocation recorded.

get_kernels Not yet run
unverified (harvested, no recorded run)
wjmaddox/spectralgp/spectralgp/utils.py
code served (permissive licence) · get_code("5c605fa6be940a45")
How it ran

no invocation recorded.

ss_factory Not yet run
unverified (harvested, no recorded run)
wjmaddox/spectralgp/spectralgp/sampling_factories.py
code served (permissive licence) · get_code("4bb374f101bdb704")
How it ran

no invocation recorded.

ss_multmodel_factory Not yet run
unverified (harvested, no recorded run)
wjmaddox/spectralgp/spectralgp/sampling_factories.py
code served (permissive licence) · get_code("386f1496a9d87dbc")
How it ran

no invocation recorded.

Also present in other papers' code

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

Gaussian processes are flexible function approximators, with inductive biases controlled by a covariance kernel. Learning the kernel is the key to representation learning and strong predictive performance. In this paper, we develop functional kernel learning (FKL) to directly infer functional posteriors over kernels. In particular, we place a transformed Gaussian process over a spectral density, to induce a non-parametric distribution over kernel functions. The resulting approach enables learning of rich representations, with support for any stationary kernel, uncertainty over the values of the kernel, and an interpretable specification of a prior directly over kernels, without requiring sophisticated initialization or manual intervention. We perform inference through elliptical slice sampling, which is especially well suited to marginalizing posteriors with the strongly correlated priors typical to function space modelling. We develop our approach for non-uniform, large-scale, multi-task, and multidimensional data, and show promising performance in a wide range of settings, including interpolation, extrapolation, and kernel recovery experiments.

For agents

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

get_harvested_code_for_paper("1910.13565")
get_code_for_paper("1910.13565")
have("1910.13565")

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

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

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

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

Connect an agent — have() is free.