SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2204.11561 · 2022

Goal-driven Self-Attentive Recurrent Networks for Trajectory Prediction

arXiv · PDF · Open in the Atlas

Code that ran

16 of 17 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 16 have no contract verdict; 0 failures of our instrument; 1 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/2204.11561.json · badge: /api/ran/2204.11561.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
luigifilippochiara/Goal-SAR canonical (classifier label)
classifier basis not recorded on the link
16 ran · 1 no recorded run
FunctionStatusWhere it lives
ADE_best_of Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/metrics.py
code served (permissive licence) · get_code("2b4360c86f098dbe")
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

torch.manual_seed(0)

num_sample = 2
seq_length = 12
N_agents = 3
num_coords = 2
obs_length = 8

predictions = torch.randn(num_sample, seq_length, N_agents, num_coords)
ground_truth = torch.randn(seq_length, N_agents, num_coords)
metric_mask = torch.tensor([True, False, True])

ARGS = {
    "predictions": predictions,
    "ground_truth": ground_truth,
    "metric_mask": metric_mask,
    "obs_length": obs_length
}
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 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
BCE_loss_sample Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/losses.py
code served (permissive licence) · get_code("aaa355270e781d8a")
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 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 dimensions: batch_size=2, T=3, H=4, W=5
batch_size = 2
T = 3
H = 4
W = 5

# logit_map: shape (batch_size, T, H, W) - logits for BCE
logit_map = torch.randn(batch_size, T, H, W)

# goal_map_GT: shape (batch_size, T, H, W) - probability targets (0-1)
goal_map_GT = torch.sigmoid(torch.randn(batch_size, T, H, W))

# loss_mask: a tensor where loss_mask[-1] is indexed
# loss_mask[-1] should have shape (batch_size,) based on how it's used:
# (loss * full_agents).sum(dim=0) / full_agents.sum()
# This indicates full_agents is shape (batch_size,)
loss_mask = torch.tensor([[1.0, 1.0], [1.0, 1.0]])  # shape (2, 2)

ARGS = {
    "logit_map": logit_map,
    "goal_map_GT": goal_map_GT,
    "loss_mask": loss_mask,
}
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 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
FDE_best_of Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/metrics.py
code served (permissive licence) · get_code("7715545c03b6e0dd")
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

torch.manual_seed(0)

# Create small tensors matching the function's shape requirements
# predictions: (num_sample, seq_length, N_agents, num_coords)
num_sample = 2
seq_length = 4
N_agents = 3
num_coords = 2

predictions = torch.randn(num_sample, seq_length, N_agents, num_coords)
ground_truth = torch.randn(seq_length, N_agents, num_coords)
metric_mask = torch.tensor([True, True, False])
obs_length = 8

ARGS = {
    "predictions": predictions,
    "ground_truth": ground_truth,
    "metric_mask": metric_mask,
    "obs_length": obs_length,
}
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 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
Goal_BCE_loss Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/losses.py
code served (permissive licence) · get_code("45fd898892ba2496")
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 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)

# Analyze the function requirements:
# Goal_BCE_loss takes:
# 1. logit_map: iterated over with "for logit_map_sample_i in logit_map"
#    Each sample is passed to BCE_loss_sample
# 2. goal_map_GT: passed to BCE_loss_sample, used in view() and BCE criterion
# 3. loss_mask: passed to BCE_loss_sample, indexed with loss_mask[-1]
#
# BCE_loss_sample expects:
# - logit_map: tensor with shape (batch_size, T, H, W) - reshaped to (batch_size, -1)
# - goal_map_GT: tensor with same spatial dims, reshaped to (batch_size, -1)
# - loss_mask: indexed with [-1] to get full_agents, then used in multiplication
#              full_agents should be broadcastable with loss (which has shape batch_size)

# logit_map should be iterable (list of samples) where each sample is (T, H, W) shaped
# Actually, looking more carefully: logit_map is iterated over, and each element
# is passed to BCE_loss_sample which expects shape (batch_size, T, H, W)
# So logit_map is a list/sequence of tensors, each with shape (batch_size, T, H, W)

batch_size = 2
T = 3
H = 4
W = 5
num_samples = 2

# Create logit_map as a list of tensors, each with shape (batch_size, T, H, W)
logit_map = [
    torch.randn(batch_size, T, H, W),
    torch.randn(batch_size, T, H, W)
]

# goal_map_GT should have shape (batch_size, T, H, W) and values in [0, 1] for BCE
goal_map_GT = torch.sigmoid(torch.randn(batch_size, T, H, W))

# loss_mask[-1] is accessed and should be broadcastable with loss (shape: batch_size)
# loss_mask[-1] should have shape compatible for element-wise multiplication with (batch_size,)
# and then sum reduction
loss_mask = [
    torch.ones(batch_size),
    torch.ones(batch_size)
]

ARGS = {
    'logit_map': logit_map,
    'goal_map_GT': goal_map_GT,
    'loss_mask': loss_mask
}
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 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
MSE_loss Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/losses.py
code served (permissive licence) · get_code("5dd5988bfbd47cc3")
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 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)

# Build tensors with distinct dimensions
# outputs: (num_samples=2, seq_length=3, num_agent=4, n_coords=2)
outputs = torch.randn(2, 3, 4, 2)

# ground_truth: same shape as outputs
ground_truth = torch.randn(2, 3, 4, 2)

# loss_mask: (num_samples=2, seq_length=3, num_agent=4) - boolean mask
loss_mask = torch.rand(2, 3, 4) > 0.5

ARGS = {
    "outputs": outputs,
    "ground_truth": ground_truth,
    "loss_mask": loss_mask,
}
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 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
check_and_add_additional_args Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/parser.py
code served (permissive licence) · get_code("2eb7cc0d4aca658a")
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 Args. 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 os
import torch

# Create a minimal args object that satisfies the function requirements
class Args:
    def __init__(self):
        self.device = 'cpu'
        self.dataset = 'eth'
        self.test_set = 'eth'
        self.num_epochs = 100
        self.save_every = None
        self.num_test_samples = 5
        self.add_noise_traj = True
        self.fast_debug = False
        self.num_test_runs = 10
        self.start_validation = 5
        self.model_name = 'test_model'
        self.phase = 'train'

args = Args()

ARGS = {
    'args': args
}
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 Args — a Args output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Args 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
compute_metric_mask Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/metrics.py
code served (permissive licence) · get_code("daac15363c345ceb")
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 (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 torch

torch.manual_seed(0)

# Construct a small tensor representing sequence presence mask
# Shape: (seq_len, N_pedestrians) = (5, 3)
# Boolean mask where 1 = pedestrian present, 0 = pedestrian absent
seq_list = torch.tensor([
    [1, 1, 1],
    [1, 1, 0],
    [1, 1, 0],
    [1, 0, 0],
    [1, 0, 0]
], dtype=torch.float32)

ARGS = {
    "seq_list": seq_list
}
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 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
compute_term Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/parser.py
code served (permissive licence) · get_code("81236cafc46b4e11")
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 Args. 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 numpy as np

class Args:
    pass

args = Args()
ARGS = {"args": args}
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 Args — a Args output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Args 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
get_dataloader Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/data_loader.py
code served (permissive licence) · get_code("d3f3d5f739da0c8f")
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 DataLoader. 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 os
import pickle
import random
import tempfile
import torch
import numpy as np

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

# Create a temporary directory structure with mock pickle files
temp_dir = tempfile.mkdtemp()
data_batches_dir = os.path.join(temp_dir, 'data_batches')
os.makedirs(data_batches_dir, exist_ok=True)

# Create train, valid, and test batch directories
for set_name in ['train', 'valid', 'test']:
    set_dir = os.path.join(data_batches_dir, f'{set_name}_batches')
    os.makedirs(set_dir, exist_ok=True)
    
    # Create 2 mock batch files for each set
    for batch_idx in range(2):
        batch_data = {
            'tensor_image': torch.randn(3, 64, 64),
            'abs_pixel_coord': torch.randint(0, 64, (2, 5, 2)).float(),
            'input_traj_maps': torch.randn(2, 4, 64, 64),
        }
        batch_id = f'{set_name}_batch_{batch_idx}'
        
        batch_file_path = os.path.join(set_dir, f'batch_{batch_idx}.pkl')
        with open(batch_file_path, 'wb') as f:
            pickle.dump((batch_data, batch_id), f)

# Create args class
class Args:
    def __init__(self):
        self.save_dir = temp_dir
        self.data_augmentation = True
        self.down_factor = 2
        self.shuffle_train_batches = True
        self.shuffle_test_batches = False

ARGS = {
    'args': Args(),
    'set_name': 'train'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
albumentations, cv2, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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
is_legitimate_traj Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/data_pre_process.py
code served (permissive licence) · get_code("b7c2f3ef3135a983")
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 numpy as np
import pandas as pd

# Create a simple DataFrame that represents a valid trajectory
# The function expects:
# - traj_df with columns: agent_id, frame_id
# - step parameter for the spacing check

# Create a valid trajectory dataframe
agent_id_values = np.array([1, 1, 1, 1, 1])
frame_id_values = np.array([0, 2, 4, 6, 8])

traj_df = pd.DataFrame({
    'agent_id': agent_id_values,
    'frame_id': frame_id_values
})

step = 2

ARGS = {
    'traj_df': traj_df,
    'step': step
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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
is_power_of_two Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/utils.py
code served (permissive licence) · get_code("fba0e99a69709c33")
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)

# The function is_power_of_two takes a single integer parameter n
# and checks if n is a power of 2 using bitwise operations.
# It returns True if n is a power of 2 and n != 0, False otherwise.

# Test with a power of 2
ARGS = {
    "n": 8
}
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
pixel2world_numpy Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/data_src/data_utils.py
code served (permissive licence) · get_code("665b9e99a83e511e")
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, 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

# Create pixel coordinates: seq_length x 2
# Using 4 sample points
pixel_coord = np.array([
    [100.0, 200.0],
    [150.0, 250.0],
    [200.0, 300.0],
    [50.0, 100.0]
])

# Create a 3x3 homography matrix
# A simple homography that includes scaling and translation
H = np.array([
    [1.5, 0.1, 10.0],
    [0.05, 1.2, 20.0],
    [0.001, 0.002, 1.0]
])

ARGS = {
    "pixel_coord": pixel_coord,
    "H": H
}
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, 2) — shape (4, 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
split_at_fragment_lambda Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/data_src/data_utils.py
code served (permissive licence) · get_code("ed295e9fe1e58373")
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 DataFrame. 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 pandas as pd
import numpy as np

# Create a small DataFrame with agent_id and other columns
df = pd.DataFrame({
    'agent_id': ['agent_1', 'agent_1', 'agent_2', 'agent_2'],
    'value': [10, 20, 30, 40],
    'new_agent_id': [None, None, None, None]
})

# Create a GroupBy object for fragmentation
# This simulates groups of indices for each agent
class MockGroupBy:
    def __init__(self):
        self.groups = {
            'agent_1': [0, 1],
            'agent_2': [2, 3]
        }

gb_frag = MockGroupBy()

# Fragment index dictionary mapping agent_id to fragment info
frag_idx = {
    'agent_1': True,
    'agent_2': True
}

# Create a Series-like object wrapper for x to match the function's usage
x = df.copy()

ARGS = {
    'x': x,
    'frag_idx': frag_idx,
    'gb_frag': gb_frag
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
str2bool Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/utils.py
code served (permissive licence) · get_code("e7d27a57b83c42b8")
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 argparse

def str2bool(v):
    if isinstance(v, bool):
        return v
    elif v.lower() in ('true', 't', 'yes', 'y', 'on', '1'):
        return True
    elif v.lower() in ('false', 'f', 'no', 'n', 'off', '0'):
        return False
    else:
        raise argparse.ArgumentTypeError('Boolean value expected.')

# The function str2bool takes one parameter: v
# It handles bool, string, and raises ArgumentTypeError otherwise
# We need to provide values that exercise the different branches

ARGS = {
    'v': 'true'  # string input that converts to True
}
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 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
strOrNone Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/utils.py
code served (permissive licence) · get_code("c8eca73e83667851")
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 torch

def strOrNone(v):
    if v is None:
        return v
    elif v.lower() in ('none', 'no', 'n', 'false', 'f', 'off', '0'):
        return None
    else:
        return v

# The function takes a single parameter 'v' which should be either None or a string
# It calls .lower() on v if v is not None, so v must be a string or have a .lower() method

ARGS = {
    'v': 'test_string'
}
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 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
world2pixel_numpy Ran
ran on a synthesized input
luigifilippochiara/Goal-SAR/src/data_src/data_utils.py
code served (permissive licence) · get_code("e122daf238c6c1d4")
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 (3, 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

# Create world coordinates: seq_length x 2 array of (x, y) world coordinates
world_coord = np.array([
    [1.0, 2.0],
    [3.0, 4.0],
    [5.0, 6.0]
], dtype=np.float32)

# Create a 3x3 inverse homography matrix
H_inv = np.array([
    [1.2, 0.1, 0.5],
    [0.05, 1.1, 0.3],
    [0.01, 0.02, 1.0]
], dtype=np.float32)

ARGS = {
    "world_coord": world_coord,
    "H_inv": H_inv
}
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 (3, 2) — shape (3, 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
load_args Not yet run
unverified (harvested, no recorded run)
luigifilippochiara/Goal-SAR/src/parser.py
code served (permissive licence) · get_code("2a6d9ff5181be851")
How it ran

no invocation recorded.

Also present in other papers' code

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

Human trajectory forecasting is a key component of autonomous vehicles, social-aware robots and advanced video-surveillance applications. This challenging task typically requires knowledge about past motion, the environment and likely destination areas. In this context, multi-modality is a fundamental aspect and its effective modeling can be beneficial to any architecture. Inferring accurate trajectories is nevertheless challenging, due to the inherently uncertain nature of the future. To overcome these difficulties, recent models use different inputs and propose to model human intentions using complex fusion mechanisms. In this respect, we propose a lightweight attention-based recurrent backbone that acts solely on past observed positions. Although this backbone already provides promising results, we demonstrate that its prediction accuracy can be improved considerably when combined with a scene-aware goal-estimation module. To this end, we employ a common goal module, based on a U-Net architecture, which additionally extracts semantic information to predict scene-compliant destinations. We conduct extensive experiments on publicly-available datasets (i.e. SDD, inD, ETH/UCY) and show that our approach performs on par with state-of-the-art techniques while reducing model complexity.

For agents

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

get_harvested_code_for_paper("2204.11561")
get_code_for_paper("2204.11561")
have("2204.11561")

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

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

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

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

Connect an agent — have() is free.