SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.16900 · NeurIPS · 2023

Learning to Taste : A Multimodal Wine Dataset

Søren Hauberg, Serge Belongie, Thoranna Bender, Simon Sørensen, Alireza Kashani, K Hjorleifsson, Grethe Hyldig, Frederik Warburg

arXiv · PDF · Open in the Atlas

Code that ran

16 of 24 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 2 violated it and 2 have no contract verdict; 10 failures of our instrument; 8 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/2308.16900.json · badge: /api/ran/2308.16900.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
thoranna/learning_to_taste canonical (classifier label)
classifier basis: classifier_2025
16 ran · 8 no recorded run
FunctionStatusWhere it lives
Hbeta_torch Ran
ran; our contract draft was wrong, not the code
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("f9b4d12a4256de7d")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 numpy as np
import random

def set_seed(seed):
    random.seed(seed)
    np.random.seed(seed)
    torch.manual_seed(seed)
    if torch.cuda.is_available():
        torch.cuda.manual_seed_all(seed)
        torch.backends.cudnn.deterministic = True
        torch.backends.cudnn.benchmark = False

def Hbeta_torch(D, beta=1.0):
    set_seed(42)
    P = torch.exp(-D.clone() * beta)
    P = torch.max(P, torch.tensor([1e-12]))
    sumP = torch.sum(P)
    H = torch.log(sumP) + beta * torch.sum(D * P) / sumP
    P = P / sumP
    return (H, P)

torch.manual_seed(0)

# Create a small distance matrix tensor
# Function expects D to support .clone() and element-wise operations
D = torch.randn(2, 4, dtype=torch.float32)

ARGS = {
    "D": D,
    "beta": 1.0,
}
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 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
SGDOptimizer Ran
ran on a synthesized input · constructed an object; no result was computed
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("9bc3af06e5e3e28e")
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 an instance of its own class, SGDOptimizer: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 numpy as np
import random

def set_seed(seed):
    random.seed(seed)
    np.random.seed(seed)
    torch.manual_seed(seed)
    if torch.cuda.is_available():
        torch.cuda.manual_seed_all(seed)
        torch.backends.cudnn.deterministic = True
        torch.backends.cudnn.benchmark = False

class TSNEMomentum:

    def __init__(self, initial_momentum=0.5, final_momentum=0.8, momentum_switch_iter=20) -> None:
        set_seed(42)
        self.final_momentum = final_momentum
        self.momentum = initial_momentum
        self.momentum_switch_iter = momentum_switch_iter
        self.min_gain = 0.01

    def allocate_resources(self, n, no_dims):
        self.gains = torch.ones(n, no_dims)

    def check_and_set_momentum_constant(self, iter):
        if iter > self.momentum_switch_iter:
            self.momentum = self.final_momentum

    def momentum_hack_to_quickly_stop_points_going_in_the_wrong_direction(self, dY, iY):
        selection_mask = (dY > 0.0) != (iY > 0.0)
        self.gains = (self.gains + 0.2) * selection_mask.double() + self.gains * 0.8 * (not selection_mask).double()
        self.gains[self.gains < self.min_gain] = self.min_gain

class SGDOptimizer:

    def __init__(self, learning_rate, momemtum_object: TSNEMomentum=TSNEMomentum()) -> None:
        self.learning_rate = learning_rate
        self.momentum = momemtum_object
        self.has_momemtum = momemtum_object != None
        set_seed(42)
        if self.has_momemtum:
            self.take_step = lambda grad, iter: self.take_step_momemtum_gains(grad, iter)
        else:
            self.take_step = lambda grad, iter: self.take_step_gains(grad, iter)

    def allocate_resources(self, n, no_dims):
        self.velocity = torch.zeros(n, no_dims)
        if self.has_momemtum:
            self.momentum.allocate_resources(n, no_dims)

    def take_step_momemtum_gains(self, gradient, iter):
        self.momentum.check_and_set_momentum_constant(iter)
        self.velocity = self.momentum.momentum * self.velocity - self.learning_rate * (self.momentum.gains * gradient)

    def take_step_gains(self, gradient, iter):
        self.momentum.check_and_set_momentum_constant(iter)
        self.velocity - self.learning_rate * (self.momentum.gains * gradient)

torch.manual_seed(0)

momentum_obj = TSNEMomentum(initial_momentum=0.5, final_momentum=0.8, momentum_switch_iter=20)

ARGS = {
    "learning_rate": 0.01,
    "momemtum_object": momentum_obj
}
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 SGDOptimizer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a SGDOptimizer 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
TSNEMomentum Ran
ran on a synthesized input · constructed an object; no result was computed
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("b0391dea6581cd12")
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 an instance of its own class, TSNEMomentum: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 numpy as np
import random

def set_seed(seed):
    random.seed(seed)
    np.random.seed(seed)
    torch.manual_seed(seed)
    if torch.cuda.is_available():
        torch.cuda.manual_seed_all(seed)
        torch.backends.cudnn.deterministic = True
        torch.backends.cudnn.benchmark = False

class TSNEMomentum:

    def __init__(self, initial_momentum=0.5, final_momentum=0.8, momentum_switch_iter=20) -> None:
        set_seed(42)
        self.final_momentum = final_momentum
        self.momentum = initial_momentum
        self.momentum_switch_iter = momentum_switch_iter
        self.min_gain = 0.01

    def allocate_resources(self, n, no_dims):
        self.gains = torch.ones(n, no_dims)

    def check_and_set_momentum_constant(self, iter):
        if iter > self.momentum_switch_iter:
            self.momentum = self.final_momentum

    def momentum_hack_to_quickly_stop_points_going_in_the_wrong_direction(self, dY, iY):
        selection_mask = (dY > 0.0) != (iY > 0.0)
        self.gains = (self.gains + 0.2) * selection_mask.double() + self.gains * 0.8 * (not selection_mask).double()
        self.gains[self.gains < self.min_gain] = self.min_gain

torch.manual_seed(0)

ARGS = {
    'initial_momentum': 0.5,
    'final_momentum': 0.8,
    'momentum_switch_iter': 20
}
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 TSNEMomentum — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TSNEMomentum 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
agreement_ratio Ran
ran; our contract draft was wrong, not the code
thoranna/learning_to_taste/run_tar.py
code served (permissive licence) · get_code("769ee08ca6503fd7")
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 float, ndim 0, dtype family float, 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 torch

torch.manual_seed(0)

# The function expects two iterables of triplets
# Each triplet is a tuple of 3 elements that can be compared for equality
# The function converts them to sets and checks for intersections

# Create sample triplets - tuples of 3 hashable elements
triplets_combined_embed = [
    (0, 1, 2),
    (1, 0, 2),
    (3, 4, 5),
    (6, 7, 8),
]

triplets_test_set_embed = [
    (0, 1, 2),
    (1, 0, 2),
    (3, 4, 5),
    (9, 10, 11),
]

ARGS = {
    "triplets_combined_embed": triplets_combined_embed,
    "triplets_test_set_embed": triplets_test_set_embed,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, 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
cauchy_kernel Ran
ran, violated the contract we drafted
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("5195032635d77a97")
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 Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import numpy as np
import random

def set_seed(seed):
    random.seed(seed)
    np.random.seed(seed)
    torch.manual_seed(seed)
    if torch.cuda.is_available():
        torch.cuda.manual_seed_all(seed)
        torch.backends.cudnn.deterministic = True
        torch.backends.cudnn.benchmark = False

def distance_squared(x_i, x_j):
    set_seed(42)
    return (x_i - x_j) ** 2

def cauchy_kernel(distance_squared, degree: int=1):
    set_seed(42)
    return degree / (degree + distance_squared)

torch.manual_seed(0)

# Create small tensors for testing
x_i = torch.randn(2, 4)
x_j = torch.randn(2, 4)

# Compute distance_squared using the function
dist_sq = distance_squared(x_i, x_j)

ARGS = {
    'distance_squared': dist_sq,
    'degree': 2
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
create_csv_row Ran
ran; our contract draft was wrong, not the code
thoranna/learning_to_taste/run_classification.py
code served (permissive licence) · get_code("03a76b0fce352fd0")
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 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 torch.nn as nn
import time as time_module

torch.manual_seed(0)

# Create a minimal model (just needs to exist, not actually used in function)
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)
    
    def forward(self, x):
        return self.linear(x)

model = MinimalModel()

# Build the predictions dictionary with the exact nested structure required
predictions = {
    'single': {
        'data1': {
            'Country': {'accuracy': 0.85},
            'Region': {'accuracy': 0.82},
            'Grape': {'accuracy': 0.88},
            'Alcohol %': {'accuracy': 0.79},
            'Year': {'accuracy': 0.81},
            'Price': {'accuracy': 0.75},
            'Rating': {'accuracy': 0.90}
        },
        'data2': {
            'Country': {'accuracy': 0.87},
            'Region': {'accuracy': 0.84},
            'Grape': {'accuracy': 0.89},
            'Alcohol %': {'accuracy': 0.80},
            'Year': {'accuracy': 0.83},
            'Price': {'accuracy': 0.77},
            'Rating': {'accuracy': 0.91}
        },
        'combined': {
            'Country': {'accuracy': 0.89},
            'Region': {'accuracy': 0.86},
            'Grape': {'accuracy': 0.91},
            'Alcohol %': {'accuracy': 0.82},
            'Year': {'accuracy': 0.85},
            'Price': {'accuracy': 0.79},
            'Rating': {'accuracy': 0.93}
        }
    },
    'multi': {
        'data1': {'accuracy': 0.76, 'f1_score': 0.74},
        'data2': {'accuracy': 0.78, 'f1_score': 0.76},
        'combined': {'accuracy': 0.80, 'f1_score': 0.78}
    }
}

# Build the increment_report dictionary
increment_report = {
    'single': {
        'accuracy': {'increment': 0.04},
        'f1_score': {'increment': 0.03}
    },
    'multi': {
        'accuracy': {'increment': 0.05},
        'f1_score': {'increment': 0.04}
    }
}

# Build the averages dictionary
averages = {
    'accuracy': 0.82,
    'f1_score': 0.80,
    'f1_score_d2': 0.79
}

ARGS = {
    'preprocessing_method1': 'StandardScaler',
    'model': model,
    'dimensionality_reduction_method2': 'PCA',
    'data_combination_method': 'concatenate',
    'predictions': predictions,
    'increment_report': increment_report,
    'averages': averages,
    'time': 42.5,
    'memory': 256.3,
    'cpu_p': 45.2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
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
create_filename Ran
ran; our contract draft was wrong, not the code
thoranna/learning_to_taste/run_classification.py
code served (permissive licence) · get_code("a047ccab6f9c4aff")
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 str. 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 create_filename takes a model_name parameter and uses it
# in an f-string to construct a filename. model_name should be a string.

ARGS = {
    'model_name': 'bert-base-uncased'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
distance_squared Ran
ran, honoured the contract we drafted
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("4004276e21ebc8b1")
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 Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import numpy as np
import random

torch.manual_seed(0)

ARGS = {
    "x_i": torch.randn(2, 4),
    "x_j": torch.randn(2, 4),
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
euclidean_distance_squared Ran
ran; our contract draft was wrong, not the code
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("f38cebd817cfb5b7")
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 Tensor, ndim 2, dtype family float, shape (2, 2) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import numpy as np
import random

torch.manual_seed(0)

# The function euclidean_distance_squared takes a tensor Y
# and computes pairwise euclidean distances squared
# Y should be a 2D tensor of shape (batch_size, num_features)

Y = torch.randn(2, 4)  # batch_size=2, num_features=4

ARGS = {
    'Y': Y
}
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 Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) 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
generate_triplets Ran
ran, violated the contract we drafted
thoranna/learning_to_taste/run_tar.py
code served (permissive licence) · get_code("ebb669eeb4a45fb2")
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 list, 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 numpy as np

# Create small embeddings matrix (n=3 samples, d=4 dimensions)
embeddings = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [1.1, 2.1, 3.1, 4.1],
    [5.0, 6.0, 7.0, 8.0]
], dtype=np.float32)

# Create mapping from index to id
idx_to_id = {
    0: "id_a",
    1: "id_b",
    2: "id_c"
}

ARGS = {
    "embeddings": embeddings,
    "idx_to_id": idx_to_id
}
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 list, ndim 2, 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
pca_torch Ran
ran; our contract draft was wrong, not the code
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("7bde4220c6c6a540")
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 Tensor, ndim 2, dtype family float, shape (2, 2) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import numpy as np
import random

torch.manual_seed(0)

# Create a small test tensor for PCA
# Shape: (2, 4) - 2 samples, 4 dimensions
X = torch.randn(2, 4, dtype=torch.float32)

ARGS = {
    "X": X,
    "no_dims": 2
}
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 Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) 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
prevent_values_being_too_low Ran
ran; our contract draft was wrong, not the code
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("5601079a75b6d3d8")
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 Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import numpy as np
import random

torch.manual_seed(0)

# Create a small tensor Q with values that could be below tolerance
Q = torch.tensor([
    [1e-13, 0.5, 1e-14, 2.0],
    [0.1, 1e-15, 0.3, 0.8]
], dtype=torch.float32)

# Create a tolerance tensor
tolerance = torch.tensor([1e-12], dtype=torch.float32)

ARGS = {
    "Q": Q,
    "tolerance": tolerance
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
split_triplets Ran
ran; our contract draft was wrong, not the code
thoranna/learning_to_taste/run_tar.py
code served (permissive licence) · get_code("68c5885c507f441b")
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 random

# Construct a valid triplet_list
# The function expects a list of triplets (iterables of 3 items)
# Each triplet will be converted to a frozenset for grouping
triplet_list = [
    (1, 2, 3),
    (1, 2, 3),  # duplicate
    (4, 5, 6),
    (7, 8, 9),
    (10, 11, 12),
    (13, 14, 15),
    (16, 17, 18),
    (19, 20, 21),
    (22, 23, 24),
    (25, 26, 27),
    (28, 29, 30),
    (31, 32, 33),
    (34, 35, 36),
    (37, 38, 39),
    (40, 41, 42),
]

ARGS = {
    "triplet_list": triplet_list,
    "test_ratio": 0.3,
    "desired_number_of_train_triplets": 10,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — 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
summed_unscaled_student_t_prop_density Ran
ran; our contract draft was wrong, not the code
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("f4a1ce2474c5840e")
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 Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import numpy as np
import random

torch.manual_seed(0)

# Construct arguments for summed_unscaled_student_t_prop_density
distance = torch.randn(2, 4)  # batch size 2, dimension 4

ARGS = {
    "distance": distance,
    "distibution_dim": 1,
    "degree": 3
}
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 Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) 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
to_torch_and_device Ran
ran, honoured the contract we drafted
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("6e0ae4db41d4863b")
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 Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import numpy as np
import random

torch.manual_seed(0)

# The function takes triplets as input and converts them to a torch tensor
# triplets should be a list or array-like structure that can be converted to a tensor
triplets = [
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
]

ARGS = {
    "triplets": triplets
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
x2p_torch Ran
ran; our contract draft was wrong, not the code
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("fb5a7c4584323b40")
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 Tensor, ndim 2, dtype family float, shape (2, 2) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import numpy as np
import random

torch.manual_seed(0)

# Create a small input tensor X
# The function computes pairwise distances and performs t-SNE perplexity calculations
# X should be shape (n_samples, n_features) where n is small
X = torch.randn(2, 4, dtype=torch.float32)

# Define arguments for x2p_torch
ARGS = {
    "X": X,
    "tol": 1e-05,
    "perplexity": 30.0,
}
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 Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) 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
Metrics Not yet run
unverified (harvested, no recorded run)
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("b5de6eaefa46be1f")
How it ran

no invocation recorded.

SNaCK Not yet run
unverified (harvested, no recorded run)
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("b5a24cf839401e60")
How it ran

no invocation recorded.

TSNE Not yet run
unverified (harvested, no recorded run)
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("08b21f949118ae89")
How it ran

no invocation recorded.

TSNEGrad Not yet run
unverified (harvested, no recorded run)
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("7faca9bb65c7713d")
How it ran

no invocation recorded.

TSTE Not yet run
unverified (harvested, no recorded run)
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("afd2ef80f5a8dbf5")
How it ran

no invocation recorded.

post_hoc_metric_given_embedding_and_triplets Not yet run
unverified (harvested, no recorded run)
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("82cb229ff8fb81f7")
How it ran

no invocation recorded.

set_distance_to_own_point_to_zero Not yet run
unverified (harvested, no recorded run)
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("a4b6c55059c3a4a1")
How it ran

no invocation recorded.

set_seed Not yet run
unverified (harvested, no recorded run)
thoranna/learning_to_taste/packages/snack/embedding/snack.py
code served (permissive licence) · get_code("0cd10d6b47310313")
How it ran

no invocation recorded.

Also present in other papers' code

Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 24 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 23 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
post_hoc_metric_given_embedding_and_triplets
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2209.00495 (2022-09)
Searching for Structure in Unfalsifiable Claims

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 present WineSensed, a large multimodal wine dataset for studying the relations between visual perception, language, and flavor. The dataset encompasses 897k images of wine labels and 824k reviews of wines curated from the Vivino platform. It has over 350k unique bottlings, annotated with year, region, rating, alcohol percentage, price, and grape composition. We obtained fine-grained flavor annotations on a subset by conducting a wine-tasting experiment with 256 participants who were asked to rank wines based on their similarity in flavor, resulting in more than 5k pairwise flavor distances. We propose a low-dimensional concept embedding algorithm that combines human experience with automatic machine similarity kernels. We demonstrate that this shared concept embedding space improves upon separate embedding spaces for coarse flavor classification (alcohol percentage, country, grape, price, rating) and aligns with the intricate human perception of flavor. Preprint. Under review.

For agents

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

get_harvested_code_for_paper("2308.16900")
get_code_for_paper("2308.16900")
have("2308.16900")

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

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

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

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

Connect an agent — have() is free.