SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.11807 · NeurIPS · 2024

Regional Ocean Forecasting with Hierarchical Graph Neural Networks

Teemu Roos, Daniel Holmberg, Emanuela Clementi

arXiv · PDF · Open in the Atlas

Code that ran

9 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 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/2410.11807.json · badge: /api/ran/2410.11807.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
deinal/seacast canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_bootstrap_ci Ran
ran; our contract draft was wrong, not the code
deinal/seacast/compare_mhw.py
code served (permissive licence) · get_code("7b5bf4b9d5cb5e4c")
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

# Set random seed for reproducibility
np.random.seed(0)

# Create sample values for bootstrap CI computation
values = np.array([1.2, 2.3, 3.1, 4.5, 5.2, 6.1, 7.3, 8.2, 9.1, 10.5])

ARGS = {
    "values": values,
    "num_bootstrap": 1000,
    "ci_percent": 50
}
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 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
compute_confusion Ran
ran, honoured the contract we drafted
deinal/seacast/compare_mhw.py
code served (permissive licence) · get_code("90116d766b823d20")
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 int; 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 numba as nb
import numpy as np

# Create small 1D boolean arrays for forecast and observed
forecast_slice = np.array([True, False, True, False], dtype=np.bool_)
observed_slice = np.array([True, True, False, False], dtype=np.bool_)

ARGS = {
    "forecast_slice": forecast_slice,
    "observed_slice": observed_slice,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — 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 int — 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
compute_wind_stress Ran
ran, violated the contract we drafted
deinal/seacast/compute_wind_stress.py
code served (permissive licence) · get_code("548d055cf7de8135")
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 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

# Set random seed for reproducibility
np.random.seed(0)

# Create small numpy arrays for wind components and temperatures
u_a = np.array([5.0, 7.5, 3.2, 6.1])
v_a = np.array([2.1, 4.3, -1.5, 3.8])
temp_a = np.array([288.15, 290.0, 285.5, 292.0])  # 2-meter air temperature in Kelvin
temp_s = np.array([293.15, 295.0, 290.5, 298.0])  # Sea surface temperature in Kelvin
rho_a = 1.2  # Air density in kg/m^3

ARGS = {
    "u_a": u_a,
    "v_a": v_a,
    "temp_a": temp_a,
    "temp_s": temp_s,
    "rho_a": rho_a,
}
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 tuple, ndim 2, 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
crosses_land Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
deinal/seacast/create_mesh.py
code served (permissive licence) · get_code("1110a2069edc8182")
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 skimage.draw

# Create a small land_mask (binary mask where 1 indicates land)
# Make it large enough to accommodate line drawing between two points
land_mask = np.zeros((100, 100), dtype=np.uint8)

# Add some land pixels (1s) to create interesting regions
# Create a band of land across the middle
land_mask[40:60, :] = 1

# Create some scattered land pixels
land_mask[20:30, 30:40] = 1
land_mask[70:80, 60:70] = 1

# Define two nodes (x, y coordinates)
node1 = (10.5, 10.5)
node2 = (80.5, 80.5)

# threshold parameter
threshold = 8

ARGS = {
    "node1": node1,
    "node2": node2,
    "land_mask": land_mask,
    "threshold": threshold,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, skimage — 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
fisher_ci Ran
ran, honoured the contract we drafted
deinal/seacast/calculate_metrics.py
code served (permissive licence) · get_code("1d856943ec26495e")
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

# The function fisher_ci takes acc_values as input
# It expects an array-like of correlation coefficient values (floats between -1 and 1)
# Let's create a realistic set of accuracy/correlation values

acc_values = [0.45, 0.52, 0.48, 0.61, 0.55, 0.59, 0.51, 0.47]

ARGS = {
    "acc_values": acc_values
}
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 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
from_networkx_with_start_index Ran
ran; our contract draft was wrong, not the code
deinal/seacast/create_mesh.py
code served (permissive licence) · get_code("be958c03b6706529")
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 Data. 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 networkx as nx
from torch_geometric.utils.convert import from_networkx

torch.manual_seed(0)

# Create a small NetworkX graph
nx_graph = nx.Graph()
nx_graph.add_edges_from([(0, 1), (1, 2), (2, 0)])

# Define start_index as an integer
start_index = 5

ARGS = {
    "nx_graph": nx_graph,
    "start_index": start_index,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Data — a Data 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
load_forecast_analysis Ran
ran, honoured the contract we drafted
deinal/seacast/calculate_metrics.py
code served (permissive licence) · get_code("7f88801542577983")
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 4, 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
import tempfile
import os

# Create temporary directory for test files
tmpdir = tempfile.mkdtemp()

# Create sample numpy arrays
# For is_med_phy=True case: needs arrays with at least 12 elements
forecast_array_true = np.random.randn(15, 4, 3)  # 15 timesteps
analysis_array_true = np.random.randn(15, 4, 3)

# For is_med_phy=False case: needs arrays with at least 2 elements (for [2:] slicing)
forecast_array_false = np.random.randn(5, 4, 3)  # 5 timesteps
analysis_array_false = np.random.randn(5, 4, 3)

# Save arrays to temporary files
forecast_file_true = os.path.join(tmpdir, 'forecast_true.npy')
analysis_file_true = os.path.join(tmpdir, 'analysis_true.npy')
forecast_file_false = os.path.join(tmpdir, 'forecast_false.npy')
analysis_file_false = os.path.join(tmpdir, 'analysis_false.npy')

np.save(forecast_file_true, forecast_array_true)
np.save(analysis_file_true, analysis_array_true)
np.save(forecast_file_false, forecast_array_false)
np.save(analysis_file_false, analysis_array_false)

# Define arguments for both cases
ARGS = {
    'forecast_file': forecast_file_true,
    'analysis_file': analysis_file_true,
    'is_med_phy': True
}
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 tuple, ndim 4, 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
sort_nodes_internally Ran
ran; our contract draft was wrong, not the code
deinal/seacast/create_mesh.py
code served (permissive licence) · get_code("fd2a817d4ec92933")
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 DiGraph. 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 networkx
import torch

# Create a simple directed graph with nodes and edges
nx_graph = networkx.DiGraph()

# Add nodes with data attributes
nx_graph.add_node(3, label='node_3', value=30)
nx_graph.add_node(1, label='node_1', value=10)
nx_graph.add_node(2, label='node_2', value=20)

# Add edges with data attributes
nx_graph.add_edge(1, 2, weight=1.5)
nx_graph.add_edge(2, 3, weight=2.5)
nx_graph.add_edge(1, 3, weight=3.5)

ARGS = {
    'nx_graph': nx_graph
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DiGraph — a DiGraph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DiGraph output the recorded ndim 1 and dtype family int 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
split_track_by_land Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
deinal/seacast/compare_sla.py
code served (permissive licence) · get_code("5c730a942bc4227d")
How it ran

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

import numpy as np

# Create sample latitude and longitude arrays
lat_arr = np.array([10.0, 10.5, 11.0, 11.5, 12.0, 12.5, 13.0, 13.5])
lon_arr = np.array([20.0, 20.5, 21.0, 21.5, 22.0, 22.5, 23.0, 23.5])

# Create sea indicator array (True = sea, False = land)
# Pattern: sea, sea, land, sea, sea, sea, land, sea
sea_indicator = np.array([True, True, False, True, True, True, False, True])

# Define minimum points threshold
min_points = 2

ARGS = {
    "lat_arr": lat_arr,
    "lon_arr": lon_arr,
    "sea_indicator": sea_indicator,
    "min_points": min_points,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

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, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 7 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
from_networkx_with_start_index 1 other paper
1 dated earlier
2406.04759 (2024-06)
Probabilistic Weather Forecasting with Hierarchical Graph Neural Networks
sort_nodes_internally 1 other paper
1 dated earlier
2406.04759 (2024-06)
Probabilistic Weather Forecasting with Hierarchical Graph Neural Networks

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

Accurate ocean forecasting systems are vital for understanding marine dynamics, which play a crucial role in environmental management and climate adaptation strategies. Traditional numerical solvers, while effective, are computationally expensive and time-consuming. Recent advancements in machine learning have revolutionized weather forecasting, offering fast and energy-efficient alternatives. Building on these advancements, we introduce SeaCast, a neural network designed for high-resolution, medium-range ocean forecasting. SeaCast employs a graphbased framework to effectively handle the complex geometry of ocean grids and integrates external forcing data tailored to the regional ocean context. Our approach is validated through experiments at a high spatial resolution using the operational numerical model of the Mediterranean Sea provided by the Copernicus Marine Service, along with both numerical and data-driven atmospheric forcings. Predicting sea dynamics is a formidable scientific challenge, driven by the need to understand and anticipate changes in ocean conditions that influence climate, weather forecasting, and maritime activities [1]. While the need for improved ocean and coastal data is global, effective decision-making in sectors like shipping, resource management, and environmental monitoring often relies on regional and localized, high-resolution models able to deliver accurate forecasts [2-7]. Recent advancements in machine learning-based weather prediction (MLWP) offer promising approaches to enhancing the predictability of marine conditions. By training on extensive historical datasets, these models can uncover complex patterns and dependencies, enabling predictions that are much faster and more energy-efficient than traditional numerical solvers. Several autoregressive ML models now rival or surpass the performance of the leading physics-based models used by meteorological organizations worldwide. Among the most notable advancements are the use of Transformers [8-10], neural operators [11,12], and graph neural networks (GNNs) [13][14][15], each demonstrating significant potential in predicting atmospheric dynamics. However, the use of machine learning in ocean forecasting remains relatively nascent, and has primarily focused on climate emulation to date [16][17][18][19][20]. This paper presents SeaCast, an autoregressive model designed for high-resolution medium-range forecasting of regional oceans, extending the methodology from limited area weather forecasting using hierarchical GNNs [15]. Our approach involves several key features allowing for accurate prediction of ocean states: 1) we adapt the graph creation, training, and evaluation processes to accommodate the irregular geometry of ocean grids;

For agents

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

get_harvested_code_for_paper("2410.11807")
get_code_for_paper("2410.11807")
have("2410.11807")

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

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

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

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

Connect an agent — have() is free.