SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1810.11654 · 2018

3D MRI brain tumor segmentation using autoencoder regularization

arXiv · PDF · Open in the Atlas

Code that ran

10 of 18 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 10 have no contract verdict; 0 failures of our instrument; 8 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1810.11654.json · badge: /api/ran/1810.11654.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
trungnhanuchiha/VAE_BRATS2018 community (classifier label)
classifier basis not recorded on the link
10 ran · 5 no recorded run
IAmSuyogJadhav/3d-mri-brain-tumor-segmentation-using-autoencoder-regularization community (classifier label)
classifier basis not recorded on the link
0 ran · 3 no recorded run
FunctionStatusWhere it lives
calculate_origin_offset Ran
ran on a synthesized input
trungnhanuchiha/VAE_BRATS2018/utils/sitk_utils.py
code served (permissive licence) · get_code("8e67c5fddc6f1b52")
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

# The function takes two parameters: new_spacing and old_spacing
# Both are used with np.subtract, which expects array-like objects
# The function computes (new_spacing - old_spacing) / 2

# Create small numpy arrays with distinct shapes to make dimensions probed later
new_spacing = np.array([1.0, 2.0, 3.0, 4.0])
old_spacing = np.array([0.5, 1.0, 1.5, 2.0])

ARGS = {
    "new_spacing": new_spacing,
    "old_spacing": old_spacing,
}
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
get_callbacks Ran
ran on a synthesized input
trungnhanuchiha/VAE_BRATS2018/training.py
code served (permissive licence) · get_code("c1b2232d1c919f53")
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 math
from functools import partial
from keras.callbacks import ModelCheckpoint, CSVLogger, LearningRateScheduler, ReduceLROnPlateau, EarlyStopping
import tempfile
import os

ARGS = {
    'model_file': os.path.join(tempfile.gettempdir(), 'model_checkpoint.h5'),
    'initial_learning_rate': 0.0001,
    'learning_rate_drop': 0.5,
    'learning_rate_epochs': 10,
    'learning_rate_patience': 50,
    'logging_file': os.path.join(tempfile.gettempdir(), 'training.log'),
    'verbosity': 1,
    'early_stopping_patience': 20,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras — 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
get_number_of_steps Ran
ran on a synthesized input
trungnhanuchiha/VAE_BRATS2018/generator.py
code served (permissive licence) · get_code("6bdb17f23d313ce3")
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 int, ndim 0, dtype family int, 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

# The function get_number_of_steps takes two parameters:
# - n_samples: an integer representing the total number of samples
# - batch_size: an integer representing the batch size
# 
# The function performs integer division and modulo operations on these values.
# We need to provide valid integer arguments.

ARGS = {
    "n_samples": 100,
    "batch_size": 32
}
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 int, ndim 0, dtype family int, 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
get_random_patch_index Ran
ran on a synthesized input
trungnhanuchiha/VAE_BRATS2018/utils/patches.py
code served (permissive licence) · get_code("d2448589a66f9e2b")
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 numpy as np

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

# Define arguments for get_random_patch_index
# image_shape: a tuple representing the shape of the image (e.g., height, width, depth)
# patch_shape: a tuple representing the shape of the patch to extract (must be smaller than image_shape)

image_shape = (10, 8, 6)  # 3D image with distinct dimensions
patch_shape = (4, 3, 2)   # 3D patch with distinct dimensions (all smaller than image_shape)

ARGS = {
    "image_shape": image_shape,
    "patch_shape": patch_shape,
}
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 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
get_validation_split Ran
ran on a synthesized input
trungnhanuchiha/VAE_BRATS2018/generator.py
code served (permissive licence) · get_code("3847d141865e5230")
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 os
import tempfile
import pickle
from unittest.mock import Mock

# Mock pickle_dump and pickle_load functions
def pickle_dump(obj, filepath):
    os.makedirs(os.path.dirname(filepath) if os.path.dirname(filepath) else '.', exist_ok=True)
    with open(filepath, 'wb') as f:
        pickle.dump(obj, f)

def pickle_load(filepath):
    with open(filepath, 'rb') as f:
        return pickle.load(f)

# Inject mocked functions into the module namespace
import sys
current_module = sys.modules[__name__]
current_module.pickle_dump = pickle_dump
current_module.pickle_load = pickle_load

# Create temporary directory for test files
temp_dir = tempfile.mkdtemp()
training_file = os.path.join(temp_dir, 'training_indices.pkl')
validation_file = os.path.join(temp_dir, 'validation_indices.pkl')

# Create mock data_file with pytables-like structure
mock_data_file = Mock()
mock_data_file.root.data.shape = (10,)  # 10 samples

ARGS = {
    'data_file': mock_data_file,
    'training_file': training_file,
    'validation_file': validation_file,
    'data_split': 0.8,
    'overwrite': 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 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
load_old_model Ran
ran on a synthesized input
trungnhanuchiha/VAE_BRATS2018/training.py
code served (permissive licence) · get_code("7c03658f79f40d3a")
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 Sequential. 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 tempfile
import os
from keras.models import Sequential
from keras.layers import Dense

# Create a temporary directory and a minimal Keras model file
temp_dir = tempfile.mkdtemp()
model_file = os.path.join(temp_dir, "test_model.h5")

# Build and save a minimal Keras model
model = Sequential([
    Dense(4, activation='relu', input_shape=(3,)),
    Dense(2, activation='softmax')
])
model.compile(optimizer='adam', loss='categorical_crossentropy')
model.save(model_file)

ARGS = {
    'model_file': model_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential 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
pickle_load Ran
ran on a synthesized input
trungnhanuchiha/VAE_BRATS2018/utils/utils.py
code served (permissive licence) · get_code("80392812b9251abe")
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 dict. 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 pickle
import tempfile
import os

# Create a temporary pickle file with some test data
test_data = {
    'key1': 'value1',
    'key2': [1, 2, 3],
    'key3': {'nested': 'dict'}
}

# Create a temporary file and write pickled data to it
temp_file = tempfile.NamedTemporaryFile(delete=False, suffix='.pkl')
temp_file_path = temp_file.name
temp_file.close()

with open(temp_file_path, 'wb') as f:
    pickle.dump(test_data, f)

# Define arguments for pickle_load function
ARGS = {
    'in_file': temp_file_path
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
random_permutation_x_y Ran
ran on a synthesized input
trungnhanuchiha/VAE_BRATS2018/augment.py
code served (permissive licence) · get_code("89bc086770042a35")
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 5, 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 random
import itertools

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

# Create small test data
# Shape: (n_modalities, x, y, z)
# Using distinct sizes: 2 modalities, 4x3x5 spatial dimensions
x_data = np.random.randn(2, 4, 3, 5).astype(np.float32)
y_data = np.random.randn(2, 4, 3, 5).astype(np.float32)

ARGS = {
    "x_data": x_data,
    "y_data": y_data,
}
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 5, 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
reverse_permute_data Ran
ran on a synthesized input
trungnhanuchiha/VAE_BRATS2018/augment.py
code served (permissive licence) · get_code("f7dbaa854eb26f70")
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 4, dtype family float, shape (2, 5, 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 small 4D array with shape (batch=2, channels=3, height=4, width=5)
data = np.random.randn(2, 3, 4, 5).astype(np.float32)

# Create a permutation key with structure: (rotation_tuple, flip_x, flip_y, flip_z, transpose)
# rotation_tuple contains (rotate_y, rotate_z)
key = (
    (1, 2),      # rotation: (rotate_y=1, rotate_z=2)
    True,        # flip_x
    False,       # flip_y
    True,        # flip_z
    False        # transpose
)

ARGS = {
    "data": data,
    "key": key
}
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 4, dtype family float, shape (2, 5, 4, 3) — shape (2, 5, 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
step_decay Ran
ran on a synthesized input
trungnhanuchiha/VAE_BRATS2018/training.py
code served (permissive licence) · get_code("e82a0e1d3d88ddf9")
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 math

def step_decay(epoch, initial_lrate, drop, epochs_drop):
    return initial_lrate * math.pow(drop, math.floor((1 + epoch) / float(epochs_drop)))

ARGS = {
    "epoch": 5,
    "initial_lrate": 0.1,
    "drop": 0.5,
    "epochs_drop": 10
}
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 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
compute_patch_indices Not yet run
unverified (harvested, no recorded run)
trungnhanuchiha/VAE_BRATS2018/utils/patches.py
code served (permissive licence) · get_code("65eff6e732630ee4")
How it ran

no invocation recorded.

dice_coefficient Not yet run
unverified (harvested, no recorded run)
IAmSuyogJadhav/3d-mri-brain-tumor-segmentation-using-autoencoder-regularization/model.py
code served (permissive licence) · get_code("6a5185ae3fdd240f")
How it ran

no invocation recorded.

dice_coefficient Not yet run
unverified (harvested, no recorded run)
trungnhanuchiha/VAE_BRATS2018/model.py
code served (permissive licence) · get_code("7275b02a0780e854")
How it ran

no invocation recorded.

get_set_of_patch_indices Not yet run
unverified (harvested, no recorded run)
trungnhanuchiha/VAE_BRATS2018/utils/patches.py
code served (permissive licence) · get_code("12e95cf38284aaba")
How it ran

no invocation recorded.

green_block Not yet run
unverified (harvested, no recorded run)
IAmSuyogJadhav/3d-mri-brain-tumor-segmentation-using-autoencoder-regularization/model.py
code served (permissive licence) · get_code("8a47aafb6d1b6cca")
How it ran

no invocation recorded.

green_block Not yet run
unverified (harvested, no recorded run)
trungnhanuchiha/VAE_BRATS2018/model.py
code served (permissive licence) · get_code("58acf26d56e2735c")
How it ran

no invocation recorded.

permute_data Not yet run
unverified (harvested, no recorded run)
trungnhanuchiha/VAE_BRATS2018/augment.py
code served (permissive licence) · get_code("5e123fdff047f8d6")
How it ran

no invocation recorded.

sampling Not yet run
unverified (harvested, no recorded run)
IAmSuyogJadhav/3d-mri-brain-tumor-segmentation-using-autoencoder-regularization/model.py
code served (permissive licence) · get_code("dfdb680d0146476b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 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

Automated segmentation of brain tumors from 3D magnetic resonance images (MRIs) is necessary for the diagnosis, monitoring, and treatment planning of the disease. Manual delineation practices require anatomical knowledge, are expensive, time consuming and can be inaccurate due to human error. Here, we describe a semantic segmentation network for tumor subregion segmentation from 3D MRIs based on encoder-decoder architecture. Due to a limited training dataset size, a variational auto-encoder branch is added to reconstruct the input image itself in order to regularize the shared decoder and impose additional constraints on its layers. The current approach won 1st place in the BraTS 2018 challenge.

For agents

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

get_harvested_code_for_paper("1810.11654")
get_code_for_paper("1810.11654")
have("1810.11654")

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

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

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

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

Connect an agent — have() is free.