SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.01986 · 2022

MAtt: A Manifold Attention Network for EEG Decoding

arXiv · PDF · Open in the Atlas

Code that ran

5 of 9 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 5 have no contract verdict; 0 failures of our instrument; 4 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/2210.01986.json · badge: /api/ran/2210.01986.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
cecnl/matt canonical (classifier label)
classifier basis not recorded on the link
5 ran · 4 no recorded run
FunctionStatusWhere it lives
getAllDataloader Ran
ran on a synthesized input
cecnl/matt/utils/GetBCIcha.py
code served (permissive licence) · get_code("d57c263d1b69d326")
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 torch
import torch.utils.data as Data
from scipy import io
import os
from unittest.mock import Mock, patch
import numpy as np

torch.manual_seed(0)

# Create mock data that simulates what io.loadmat would return
mock_mat_data = {
    'x_test': np.random.randn(340, 4).astype(np.float32),
    'y_test': np.random.randint(0, 4, 340).astype(np.float32)
}

# Patch io.loadmat to return our mock data
with patch('scipy.io.loadmat', return_value=mock_mat_data):
    # This ensures the mock is in place when we define ARGS
    pass

# Define ARGS with the function parameters
ARGS = {
    'subject': 1,
    'data_path': './data/BCIcha/',
    'bs': 64
}

# Patch scipy.io.loadmat for when the function is actually called
original_loadmat = io.loadmat
def mock_loadmat(path):
    return mock_mat_data

io.loadmat = mock_loadmat
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 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
is_nan_or_inf Ran
ran on a synthesized input
cecnl/matt/mAtt/utils.py
code served (permissive licence) · get_code("4f47b9a63c67a59c")
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 bool, 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)

# Create a small tensor to test the function
# The function checks for inf and nan values
A = torch.tensor([[1.0, 2.0, 3.0, 4.0],
                   [5.0, 6.0, 7.0, 8.0]], dtype=torch.float32)

ARGS = {
    "A": A
}
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 bool, 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
split_train_valid_set Ran
ran on a synthesized input
cecnl/matt/utils/GetBci2a.py
code served (permissive licence) · get_code("308770a9a821a746")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create sample data with 4 classes
# Total samples: 16, so each class has 4 samples
# Features: 3-dimensional, Labels: 4 classes (0, 1, 2, 3)
x_train = torch.randn(16, 3)
y_train = torch.tensor([0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3])

# ratio parameter: used to split each class into train/valid
# vL = int(len(class1_x) / ratio), so ratio should be > 1
# With 4 samples per class and ratio=2, vL=2, so 2 train, 2 valid per class
ratio = 2

ARGS = {
    "x_train": x_train,
    "y_train": y_train,
    "ratio": ratio
}
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 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
testNetwork Ran
ran on a synthesized input
cecnl/matt/utils/functions.py
code served (permissive licence) · get_code("7fff0be99fd24898")
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 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
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal neural network
class SimpleNet(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create network instance
net = SimpleNet()

# Create a minimal test loader (list of (xb, yb) tuples)
# Each batch: input tensor of shape (2, 4), output label as scalar tensor
testloader = [
    (torch.randn(2, 4), torch.tensor(1)),
    (torch.randn(2, 4), torch.tensor(0)),
]

ARGS = {
    "net": net,
    "testloader": testloader,
}
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 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
testNetwork_auc Ran
ran on a synthesized input
cecnl/matt/utils/functions.py
code served (permissive licence) · get_code("d9356f36a89288af")
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 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
import torch.nn as nn

torch.manual_seed(0)

# Define a small neural network that outputs 2 logits (binary classification)
class SimpleNet(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc = nn.Linear(4, 2)
    
    def forward(self, x):
        return self.fc(x)

# Create the network
net = SimpleNet()

# Create a small test loader with 2 batches
# Each batch has 2 samples with input dimension 4 and binary labels
testloader = [
    (torch.randn(2, 4), torch.tensor([0, 1], dtype=torch.long)),
    (torch.randn(2, 4), torch.tensor([1, 0], dtype=torch.long))
]

ARGS = {
    "net": net,
    "testloader": testloader
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sklearn, 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
getAllDataloader Not yet run
unverified (harvested, no recorded run)
cecnl/matt/utils/GetBci2a.py
code served (permissive licence) · get_code("c2ea4bccdc3194b3")
How it ran

no invocation recorded.

getAllDataloader Not yet run
unverified (harvested, no recorded run)
cecnl/matt/utils/GetMamem.py
code served (permissive licence) · get_code("b101085be1ec12fa")
How it ran

no invocation recorded.

is_pos_def Not yet run
unverified (harvested, no recorded run)
cecnl/matt/mAtt/utils.py
code served (permissive licence) · get_code("97d4c97ee913a736")
How it ran

no invocation recorded.

symmetric Not yet run
unverified (harvested, no recorded run)
cecnl/matt/mAtt/utils.py
code served (permissive licence) · get_code("fb630094fc8f5169")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 7 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 7 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
getAllDataloader 1 other paper
1 later
ijcai2024_0564 (2024 (year only))
A Grassmannian Manifold Self-Attention Network for Signal Classification
getAllDataloader 1 other paper
1 later
ijcai2024_0564 (2024 (year only))
A Grassmannian Manifold Self-Attention Network for Signal Classification
is_nan_or_inf 1 other paper
1 later
2503.13497 (2025-03)
Is Limited Participant Diversity Impeding EEG-based Machine Learning?
is_pos_def 1 other paper
1 later
2503.13497 (2025-03)
Is Limited Participant Diversity Impeding EEG-based Machine Learning?
split_train_valid_set 1 other paper
1 later
ijcai2024_0564 (2024 (year only))
A Grassmannian Manifold Self-Attention Network for Signal Classification
symmetric 1 other paper
1 later
2503.13497 (2025-03)
Is Limited Participant Diversity Impeding EEG-based Machine Learning?
testNetwork 1 other paper
1 later
ijcai2024_0564 (2024 (year only))
A Grassmannian Manifold Self-Attention Network for Signal Classification

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

Recognition of electroencephalographic (EEG) signals highly affect the efficiency of non-invasive brain-computer interfaces (BCIs). While recent advances of deep-learning (DL)-based EEG decoders offer improved performances, the development of geometric learning (GL) has attracted much attention for offering exceptional robustness in decoding noisy EEG data. However, there is a lack of studies on the merged use of deep neural networks (DNNs) and geometric learning for EEG decoding. We herein propose a manifold attention network (mAtt), a novel geometric deep learning (GDL)-based model, featuring a manifold attention mechanism that characterizes spatiotemporal representations of EEG data fully on a Riemannian symmetric positive definite (SPD) manifold. The evaluation of the proposed MAtt on both time-synchronous and -asyncronous EEG datasets suggests its superiority over other leading DL methods for general EEG decoding. Furthermore, analysis of model interpretation reveals the capability of MAtt in capturing informative EEG features and handling the non-stationarity of brain dynamics.

For agents

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

get_harvested_code_for_paper("2210.01986")
get_code_for_paper("2210.01986")
have("2210.01986")

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

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

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

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

Connect an agent — have() is free.