SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1906.09412 · 2019

Multi-task Learning for Aggregated Data using Gaussian Processes

arXiv · PDF · Open in the Atlas

Code that ran

4 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; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/1906.09412.json · badge: /api/ran/1906.09412.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
frb-yousefi/aggregated-multitask-gp canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
FunctionStatusWhere it lives
get_batch_scales Ran
ran on a synthesized input
frb-yousefi/aggregated-multitask-gp/hetmogp/util.py
code served (permissive licence) · get_code("0f5bc927b86a68d8")
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)

# The function iterates over X_all and X in parallel,
# accessing .shape[0] on each element to compute a ratio.
# X_all and X should be lists of tensors or array-like objects.

# Create sample data:
# X_all: list of tensors with different batch sizes (larger batches)
# X: list of tensors with smaller batch sizes (for computing the ratio)

X_all = [
    torch.randn(8, 4),   # batch size 8
    torch.randn(6, 4),   # batch size 6
    torch.randn(10, 4),  # batch size 10
]

X = [
    torch.randn(2, 4),   # batch size 2
    torch.randn(3, 4),   # batch size 3
    torch.randn(5, 4),   # batch size 5
]

ARGS = {
    "X_all": X_all,
    "X": X,
}
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
smse Ran
ran on a synthesized input
frb-yousefi/aggregated-multitask-gp/error_func.py
code served (permissive licence) · get_code("9f1c5a171af4bf4c")
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 (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 numpy as np

# The function expects:
# - mu_star_list: a list of numpy arrays (predictions)
# - Y_test_list: a list of numpy arrays (ground truth targets)

# Create sample prediction and target arrays
# Using distinct sizes to make dimensions clear: batch_size=2, feature_dim=4
np.random.seed(0)

# Create 3 test cases with different shapes
mu_star_1 = np.random.randn(2, 4)
Y_test_1 = np.random.randn(2, 4) + 1.0  # offset to ensure non-zero variance

mu_star_2 = np.random.randn(3, 5)
Y_test_2 = np.random.randn(3, 5) + 0.5

mu_star_3 = np.random.randn(4, 3)
Y_test_3 = np.random.randn(4, 3) + 2.0

mu_star_list = [mu_star_1, mu_star_2, mu_star_3]
Y_test_list = [Y_test_1, Y_test_2, Y_test_3]

ARGS = {
    "mu_star_list": mu_star_list,
    "Y_test_list": Y_test_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 1, dtype family float, shape (3,) — shape (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
snlp Ran
ran on a synthesized input
frb-yousefi/aggregated-multitask-gp/error_func.py
code served (permissive licence) · get_code("ee8a95a1163b17d1")
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 (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 numpy as np

np.random.seed(0)

# Create small test data for the function
# The function expects lists of numpy arrays for variance, Y_train, Y_test, and predictions

# var_star_list: list of variance estimates (scalars or small arrays)
var_star_list = [np.array(0.5), np.array(0.8), np.array(1.2)]

# Y_train_list: list of training target arrays
Y_train_list = [
    np.random.randn(10),
    np.random.randn(10),
    np.random.randn(10)
]

# Y_test_list: list of test target arrays
Y_test_list = [
    np.random.randn(8),
    np.random.randn(8),
    np.random.randn(8)
]

# mu_star_list: list of predicted means
mu_star_list = [
    np.random.randn(8),
    np.random.randn(8),
    np.random.randn(8)
]

ARGS = {
    'var_star_list': var_star_list,
    'Y_train_list': Y_train_list,
    'Y_test_list': Y_test_list,
    'mu_star_list': mu_star_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 1, dtype family float, shape (3,) — shape (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
true_u_functions Ran
ran on a synthesized input
frb-yousefi/aggregated-multitask-gp/hetmogp/util.py
code served (permissive licence) · get_code("1e686d574aa04e8d")
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. 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)

# X_list: a list of numpy arrays, each representing spatial points
# The function iterates over X_list and for each X, creates u_task with shape (X.shape[0], Q)
# X should be 1D or have a first dimension that represents number of points

X1 = np.linspace(0, 1, 5).reshape(-1, 1)  # shape (5, 1)
X2 = np.linspace(0, 1, 3).reshape(-1, 1)  # shape (3, 1)
X_list = [X1, X2]

# Q: number of tasks/outputs
Q = 2

ARGS = {
    "X_list": X_list,
    "Q": Q
}
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 — a list 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
true_f_functions Not yet run
unverified (harvested, no recorded run)
frb-yousefi/aggregated-multitask-gp/hetmogp/util.py
code served (permissive licence) · get_code("e1c0f6a2a17c4ddb")
How it ran

no invocation recorded.

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, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 2 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
get_batch_scales 2 other papers
1 dated earlier, 1 later
1805.07633 (2018-05)
Heterogeneous Multi-output Gaussian Process Prediction
1911.00002 (2019-11)
Continual Multi-task Gaussian Processes
true_f_functions 2 other papers
1 dated earlier, 1 later
1805.07633 (2018-05)
Heterogeneous Multi-output Gaussian Process Prediction
1911.00002 (2019-11)
Continual Multi-task Gaussian Processes
true_u_functions 2 other papers
1 dated earlier, 1 later
1805.07633 (2018-05)
Heterogeneous Multi-output Gaussian Process Prediction
1911.00002 (2019-11)
Continual Multi-task Gaussian Processes

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-22.

Repositories linked to this paper

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

Abstract

Aggregated data is commonplace in areas such as epidemiology and demography. For example, census data for a population is usually given as averages defined over time periods or spatial resolutions (cities, regions or countries). In this paper, we present a novel multi-task learning model based on Gaussian processes for joint learning of variables that have been aggregated at different input scales. Our model represents each task as the linear combination of the realizations of latent processes that are integrated at a different scale per task. We are then able to compute the cross-covariance between the different tasks either analytically or numerically. We also allow each task to have a potentially different likelihood model and provide a variational lower bound that can be optimised in a stochastic fashion making our model suitable for larger datasets. We show examples of the model in a synthetic example, a fertility dataset, and an air pollution prediction application.

For agents

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

get_harvested_code_for_paper("1906.09412")
get_code_for_paper("1906.09412")
have("1906.09412")

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

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

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

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

Connect an agent — have() is free.