SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.11269 · 2026

CosMAP: Contrastive Manifold Approximation and Projection for Dimensionality Reduction of Omics and Genealogical Data

Fenosoa Randrianjatovo, Maya Saleh, Simon Girard, Amadou Barry

arXiv · PDF · Open in the Atlas

Code that ran

13 of 20 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; 3 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 9 failures of our instrument; 7 no recorded run), measured 2026-11-23; 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/2608.11269.json · badge: /api/ran/2608.11269.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
FenosoaRandrianjatovo/CosMAP-dr community
Papers with Code archive
13 ran · 7 no recorded run
FunctionStatusWhere it lives
compute_precomputed_similarity_graph Ran
ran; our contract draft was wrong, not the code
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("429ff61a236622ac")
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 csr_matrix. 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 numpy as np
import torch
import scipy.sparse as sp

torch.manual_seed(0)

# Create a small precomputed similarity matrix
# 5x5 square similarity matrix with finite values
n_samples = 5
X_dense = np.array([
    [1.0, 0.8, 0.6, 0.4, 0.2],
    [0.8, 1.0, 0.7, 0.5, 0.3],
    [0.6, 0.7, 1.0, 0.6, 0.4],
    [0.4, 0.5, 0.6, 1.0, 0.7],
    [0.2, 0.3, 0.4, 0.7, 1.0]
], dtype=np.float32)

ARGS = {
    'X': X_dense,
    'n_neighbors': 2,
    'temperature': 1.0,
    'use_gpu': False,
    'batch_size': 2,
    'faiss_backend': 'auto',
    'verbose': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type csr_matrix — a csr_matrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a csr_matrix 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
find_ab_ Ran
ran, honoured the contract we drafted
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("60bab217e307ead5")
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 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 numpy as np
from typing import Tuple

ARGS = {
    "spread": 0.5,
    "min_dist": 0.1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
get_torch_device Ran
ran; our contract draft was wrong, not the code
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("1241e28c5451ee6b")
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 device. 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

torch.manual_seed(0)

ARGS = {
    'use_gpu': False,
}
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 device — a device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a device 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
initialize_embedding Ran
ran, honoured the contract we drafted
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("85b149c0508edf9f")
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 (5, 2) 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 scipy.sparse as sp
from sklearn.decomposition import PCA, TruncatedSVD
from sklearn.neighbors import KDTree

# Create minimal test data
np.random.seed(42)
n_samples = 5
n_features = 4
n_components = 2

# Create data matrix
data = np.random.randn(n_samples, n_features).astype(np.float32)

# Create a sparse graph (connectivity matrix)
# Use a simple sparse adjacency matrix
graph = sp.csr_matrix(
    np.eye(n_samples, dtype=np.float32) + 
    0.1 * np.random.randn(n_samples, n_samples).astype(np.float32)
)
graph.data[graph.data < 0] = 0

# Create random state
random_state = np.random.RandomState(seed=42)

# Create metric_kwds dict
metric_kwds = {'p': 2}

# Create init array (2D array for custom initialization)
init_array = np.random.randn(n_samples, n_components).astype(np.float32)

# Test with 'random' init first
ARGS = {
    'data': data,
    'graph': graph,
    'n_components': n_components,
    'init': 'random',
    'random_state': random_state,
    'metric': 'euclidean',
    'metric_kwds': metric_kwds,
    'seed': 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, sklearn — 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 (5, 2) — shape (5, 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
l2_normalize Ran
ran; our contract draft was wrong, not the code
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("f1934dc514a9afa5")
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. 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)

# Create a small tensor with shape (2, 4) - batch size 2, feature dimension 4
X = torch.randn(2, 4, dtype=torch.float32)

# Define the eps parameter with default value
eps = 1e-12

ARGS = {
    "X": X,
    "eps": eps,
}
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 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
make_epochs_per_sample Ran
ran; our contract draft was wrong, not the code
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("eff86f2d4e9fc08d")
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 (4,) 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

# Create a small weights array with positive values
weights = np.array([1.0, 2.0, 3.0, 4.0], dtype=np.float64)

# Set n_epochs to a reasonable value
n_epochs = 10

ARGS = {
    "weights": weights,
    "n_epochs": n_epochs,
}
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 (4,) — shape (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
make_random_state Ran
ran; our contract draft was wrong, not the code
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("dd70820bd1be6039")
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 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 numpy as np
from sklearn.utils import check_random_state

# Test case 1: None
arg1_none = None

# Test case 2: int seed
arg2_int = 42

# Test case 3: np.integer
arg3_np_integer = np.int64(123)

# Test case 4: np.random.RandomState
arg4_random_state = np.random.RandomState(seed=456)

# Construct ARGS with the primary test case
ARGS = {
    "random_state": 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
noisy_scale_coords Ran
ran; our contract draft was wrong, not the code
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("37bbdcf7831dd1a6")
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 (4, 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

# Create a random state for reproducibility
random_state = np.random.RandomState(seed=42)

# Create sample coordinates - a 2D array of shape (4, 3)
# Using distinct dimensions for different meanings
coords = np.array([
    [1.0, 2.0, 3.0],
    [0.5, -1.5, 2.5],
    [0.0, 0.0, 0.0],
    [-2.0, 1.0, -0.5]
], dtype=np.float32)

# Build ARGS dictionary with all required parameters
ARGS = {
    "coords": coords,
    "random_state": random_state,
    "max_coord": 10.0,
    "noise": 0.0001
}
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 2, dtype family float, shape (4, 3) — shape (4, 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
normalize_embedding_to_10 Ran
ran, honoured the contract we drafted
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("4e414e56af9b8775")
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, 4) 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

# Create a sample embedding array
# Shape: (batch_size=2, embedding_dim=4) with distinct values
embedding = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=np.float32)

ARGS = {
    "embedding": embedding
}
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 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
optimize_layout_euclidean_torch_autograd Ran
ran; our contract draft was wrong, not the code
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("fee7676fdff5c2bb")
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 (8, 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

torch.manual_seed(0)
np.random.seed(0)

n_vertices = 8
n_edges = 12
embedding_dim = 4

embedding = np.random.randn(n_vertices, embedding_dim).astype(np.float32)
head = np.random.randint(0, n_vertices, size=n_edges).astype(np.int64)
tail = np.random.randint(0, n_vertices, size=n_edges).astype(np.int64)
weight = np.random.rand(n_edges).astype(np.float32)

ARGS = {
    'embedding': embedding,
    'head': head,
    'tail': tail,
    'weight': weight,
    'n_epochs': 2,
    'n_vertices': n_vertices,
    'a': 1.0,
    'b': 2.0,
    'gamma': 1.0,
    'negative_sample_rate': 5,
    'initial_alpha': 0.1,
    'batch_size': 4,
    'random_state': None,
    'seed': 42,
    'deterministic': False,
    'device': None,
    'use_gpu': False,
    'verbose': False,
    'collect_loss': False,
}
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 ndarray, ndim 2, dtype family float, shape (8, 4) — shape (8, 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
optimize_layout_euclidean_torch_manual Ran
ran; our contract draft was wrong, not the code
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("3aab66a2791f7467")
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 (8, 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

torch.manual_seed(0)
np.random.seed(0)

# Small toy problem
n_vertices = 8
n_edges = 12
embedding_dim = 4

# Create small embedding matrix (n_vertices x embedding_dim)
embedding = np.random.randn(n_vertices, embedding_dim).astype(np.float32)

# Create edge lists (head and tail node indices)
head = np.array([0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5], dtype=np.int64)
tail = np.array([1, 2, 3, 4, 5, 6, 2, 3, 4, 5, 6, 7], dtype=np.int64)

# Edge weights
weight = np.random.rand(n_edges).astype(np.float32)

# Optimization parameters
n_epochs = 2
a = 1.0
b = 1.0
gamma = 1.0
negative_sample_rate = 2
initial_alpha = 0.1
batch_size = 4

ARGS = {
    'embedding': embedding,
    'head': head,
    'tail': tail,
    'weight': weight,
    'n_epochs': n_epochs,
    'n_vertices': n_vertices,
    'a': a,
    'b': b,
    'gamma': gamma,
    'negative_sample_rate': negative_sample_rate,
    'initial_alpha': initial_alpha,
    'batch_size': batch_size,
    'random_state': None,
    'seed': 42,
    'deterministic': False,
    'device': None,
    'use_gpu': False,
    'verbose': False,
    'clip_value': 4.0,
    'collect_loss': False,
}
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 ndarray, ndim 2, dtype family float, shape (8, 4) — shape (8, 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
safe_import_faiss Ran
ran; our contract draft was wrong, not the code
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("815c20c8f9783563")
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 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 time

def ts() -> str:
    """Small timestamp helper for verbose messages."""
    return time.strftime('%Y-%m-%d %H:%M:%S')

def safe_import_faiss(verbose: bool=False):
    """Import FAISS safely and detect whether the imported build supports GPU."""
    try:
        import faiss
    except Exception as exc:
        if verbose:
            print(f'{ts()} FAISS import failed: {exc}')
        return (None, False, False)
    has_gpu = hasattr(faiss, 'StandardGpuResources') and hasattr(faiss, 'GpuIndexFlatIP')
    has_cpu = hasattr(faiss, 'IndexFlatIP')
    if verbose:
        print(f"{ts()} FAISS found: {getattr(faiss, '__file__', 'unknown')}")
        print(f"{ts()} FAISS version: {getattr(faiss, '__version__', 'unknown')}")
        print(f'{ts()} FAISS GPU support: {has_gpu}')
        print(f'{ts()} FAISS CPU IndexFlatIP support: {has_cpu}')
    return (faiss, has_cpu, has_gpu)

ARGS = {
    'verbose': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
faiss — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
ts Ran
ran on a synthesized input
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("b134b21ef383d8ba")
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 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 time

def ts() -> str:
    """Small timestamp helper for verbose messages."""
    return time.strftime('%Y-%m-%d %H:%M:%S')

ARGS = {}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 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
CosMAP Not yet run
unverified (harvested, no recorded run)
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("d5719f2aef646d6b")
How it ran

no invocation recorded.

cleanup_torch_memory Not yet run
unverified (harvested, no recorded run)
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("160725427a3abf52")
How it ran

no invocation recorded.

compute_cosine_similarity_graph Not yet run
unverified (harvested, no recorded run)
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("0636c310dfb40b34")
How it ran

no invocation recorded.

compute_euclidean_similarity_graph Not yet run
unverified (harvested, no recorded run)
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("9f3336ea81babf35")
How it ran

no invocation recorded.

compute_similarity_graph Not yet run
unverified (harvested, no recorded run)
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("b417673f76e957b4")
How it ran

no invocation recorded.

optimization_simplicial_set Not yet run
unverified (harvested, no recorded run)
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("397e0e38f95f79f9")
How it ran

no invocation recorded.

seed_everything Not yet run
unverified (harvested, no recorded run)
FenosoaRandrianjatovo/CosMAP-dr/src/cosmapdr/cosmapdr.py
code served (permissive licence) · get_code("b14bbd1e57c1239d")
How it ran

no invocation recorded.

Also present in other papers' code

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

Omics datasets, particularly single-cell RNA sequencing data, are high-dimensional, sparse, noisy, and dominated by zero values, making faithful low-dimensional representation challenging. Existing dimensionality-reduction methods may distort local neighbourhoods, global organization, or the cohesion of meaningful populations, with similar limitations arising in genealogical data. We introduce Contrastive Manifold Approximation and Projection (CosMAP), a graph-based unsupervised dimensionality-reduction method for producing faithful and interpretable embeddings. CosMAP extends the graph-based framework of UMAP by combining cosine-similarity neighbourhoods with temperature-normalized contrastive affinities, which are optimized in the embedding space using an attractive-repulsive objective. It further employs a two-phase refinement strategy: an intermediate higher-dimensional representation is first learned and then used to reconstruct the neighbourhood graph and initialize the final low-dimensional embedding. We evaluate CosMAP on MNIST and USPS handwritten-digit datasets, mouse retina and cortex single-cell RNA-sequencing datasets, and a large genealogical kinship dataset derived from BALSAC-CARTaGENE. Compared with state-of-the-art dimensionality-reduction methods, CosMAP produces more coherent visual representations, improves neighbourhood preservation, and provides clearer global organization of digit classes, biological cell populations, and regional genealogical patterns. These results indicate that CosMAP offers a robust framework for exploratory analysis of complex, sparse, high-dimensional data. The implementation is publicly available at https://github.com/FenosoaRandrianjatovo/CosMAP-dr.

For agents

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

get_harvested_code_for_paper("2608.11269")
get_code_for_paper("2608.11269")
have("2608.11269")

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

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

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

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

Connect an agent — have() is free.