SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1711.05225 · 2017

CheXNet: Radiologist-Level Pneumonia Detection on Chest X-Rays with Deep Learning

arXiv · PDF · Open in the Atlas

Code that ran

29 of 37 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 13 have no contract verdict; 12 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/1711.05225.json · badge: /api/ran/1711.05225.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
Azure/AzureChestXRay community (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
SenWu/emmental-tutorials community (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
Mnpr/OC-DeepLearning community (classifier label)
classifier basis not recorded on the link
5 ran · 2 no recorded run
dstrick17/Deep-Learning-Project community (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
odokumaci/pneumonia-rsna reimplementation (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
SGNovice/Disease-detection-using-chest-xrays community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
jrzech/reproduce-chexnet community (classifier label)
classifier basis not recorded on the link
1 ran · 2 no recorded run
arnoweng/CheXNet reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
rahulcoding/CheXNet reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
brucechou1983/CheXNet-Keras reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
thibaultwillmann/CheXNet-Pytorch reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
skaravind/Whatsapp-Radiologist community (classifier label)
classifier basis not recorded on the link
0 ran · 1 no recorded run
FunctionStatusWhere it lives
as_string_b64encoded_pickled Ran
ran on a synthesized input
Azure/AzureChestXRay/AzureChestXRay_AMLWB/Code/src/score_image_and_cam.py
pointer only (licence: MIT) · get_code("7c43090ecf7d0f02")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, Azure/AzureChestXRay, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_model Ran
ran on a synthesized input
Azure/AzureChestXRay/AzureChestXRay_AMLWB/Code/src/azure_chestxray_keras_utils.py
pointer only (licence: MIT) · get_code("a46ebda77ad3d0aa")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, Azure/AzureChestXRay, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calc_cam Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jrzech/reproduce-chexnet/visualize_prediction.py
code served (permissive licence) · get_code("7f830b60d3c5b796")
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 3, dtype family float, shape (7, 7, 1) 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
import numpy as np

torch.manual_seed(0)

# Create a minimal DenseNet121-like model that satisfies the function's requirements
class MinimalDenseNet(nn.Module):
    def __init__(self):
        super(MinimalDenseNet, self).__init__()
        # The function expects:
        # 1. A features component (accessed via list(model.children())[:-1])
        # 2. A classifier component with state_dict keys 'classifier.0.weight' and 'classifier.0.bias'
        # 3. The model should output 1024 channels in a 7x7 spatial dimension
        
        self.features = nn.Sequential(
            nn.Conv2d(3, 1024, kernel_size=7, stride=32, padding=0),  # Input 224x224 -> output 7x7
            nn.BatchNorm2d(1024),
            nn.ReLU(inplace=True)
        )
        
        self.classifier = nn.Sequential(
            nn.Linear(1024 * 7 * 7, 14)  # 14 findings
        )
    
    def forward(self, x):
        x = self.features(x)
        x = x.view(x.size(0), -1)
        x = self.classifier(x)
        return x

# Instantiate the model
model = MinimalDenseNet()

# Create input tensor: 1x3x224x224
x = torch.randn(1, 3, 224, 224)

# Choose a valid label from the FINDINGS list
label = 'Atelectasis'

ARGS = {
    'x': x,
    'label': label,
    'model': model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (7, 7, 1) — shape (7, 7, 1) 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
ce_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
SenWu/emmental-tutorials/chexnet/task.py
code served (permissive licence) · get_code("463d3f2f4d6be38d")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small module to act as the "module" in immediate_output_dict
class DummyModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Build the immediate_output_dict
# The function accesses immediate_ouput_dict[module_name][0][active]
# So we need a dict where each key maps to a structure that supports [0] indexing
# and then supports fancy indexing with [active]
module_name = "output_layer"

# Create a tensor of shape (batch_size, num_classes)
# batch_size=2, num_classes=3
output_tensor = torch.randn(2, 3)

# immediate_ouput_dict[module_name][0] should be indexable with [active]
# So we wrap it in a list and then a dict
immediate_ouput_dict = {
    module_name: [output_tensor]
}

# Create Y tensor with shape (batch_size,) containing class indices
# For cross_entropy with 3 classes, targets should be in [0, 1, 2]
Y = torch.tensor([1, 2])

# Create active mask - boolean tensor of same length as Y
active = torch.tensor([True, False])

ARGS = {
    "module_name": module_name,
    "immediate_ouput_dict": immediate_ouput_dict,
    "Y": Y,
    "active": active
}
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
compute_AUCs Ran
ran; our contract draft was wrong, not the code
arnoweng/CheXNet/model.py
pointer only (licence: NONE) · get_code("fc2e02e8ee2be889")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, arnoweng/CheXNet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

false_positives Ran
ran on a synthesized input
Mnpr/OC-DeepLearning/Utils/eval_utils.py
code served (permissive licence) · get_code("99e667e09872acea")
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 int64, 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

# Create ground truth labels (0s and 1s)
y = np.array([0, 1, 0, 1, 0, 1])

# Create model predictions (continuous values between 0 and 1)
y_pred = np.array([0.2, 0.8, 0.3, 0.9, 0.1, 0.6])

# Set threshold
threshold = 0.5

ARGS = {
    'y': y,
    'y_pred': y_pred,
    'threshold': threshold
}
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 int64, 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
func Ran
ran, violated the contract we drafted
rahulcoding/CheXNet/denseNet_localization.py
pointer only (licence: GPL-3.0) · get_code("7fc4e9d73fe8bdc0")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, rahulcoding/CheXNet, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_gradcam Ran
ran; our contract draft was wrong, not the code
dstrick17/Deep-Learning-Project/XRay_app/utils/model_utils.py
code served (permissive licence) · get_code("2bd1a227991d09e4")
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 (224, 224) 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
import numpy as np

torch.manual_seed(0)

# Build a minimal model that satisfies the function's usage
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        # features[-1] must be a Conv2d layer that can register hooks
        self.features = nn.Sequential(
            nn.Conv2d(3, 8, kernel_size=3, padding=1),
            nn.ReLU(),
            nn.Conv2d(8, 16, kernel_size=3, padding=1)
        )
        # classifier for output
        self.classifier = nn.Linear(16 * 224 * 224, 10)
    
    def forward(self, x):
        # x shape: (batch, 3, 224, 224)
        x = self.features(x)
        # Flatten and classify
        x = x.view(x.size(0), -1)
        x = self.classifier(x)
        return x

model = MinimalModel()
model.eval()

# Create input tensor: (3, 224, 224) - will be unsqueezed to (1, 3, 224, 224)
input_tensor = torch.randn(3, 224, 224)

# Target class for gradient computation
target_class = 3

# Device
device = 'cpu'

ARGS = {
    'model': model,
    'input_tensor': input_tensor,
    'target_class': target_class,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (224, 224) — shape (224, 224) 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_data_transforms Ran
ran; our contract draft was wrong, not the code
SenWu/emmental-tutorials/chexnet/transforms.py
code served (permissive licence) · get_code("39ba58dee4170072")
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 torch
from torchvision import transforms

torch.manual_seed(0)

# The function takes a dataset_name parameter and returns transforms based on it
# Looking at the function body, it checks if 'CXR8' is in dataset_name
# We need to provide a valid dataset_name string

ARGS = {
    'dataset_name': 'CXR8'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — 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
get_dicom_fps Ran
ran; our contract draft was wrong, not the code
odokumaci/pneumonia-rsna/pnclassify.py
pointer only (licence: NONE) · get_code("c64618410ac55c1d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, odokumaci/pneumonia-rsna when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_files_in_dir Ran
ran on a synthesized input
Azure/AzureChestXRay/AzureChestXRay_AMLWB/Code/src/azure_chestxray_utils.py
pointer only (licence: MIT) · get_code("72f20cc06cb7434e")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, Azure/AzureChestXRay, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_output_layer Ran
ran; our contract draft was wrong, not the code
brucechou1983/CheXNet-Keras/cam.py
code served (permissive licence) · get_code("548c0fe9e1ac8315")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Layer. 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 torch.nn as nn

torch.manual_seed(0)

# Create a simple stand-in model class that mimics the interface used by the function
class Layer:
    def __init__(self, name):
        self.name = name

class Model:
    def __init__(self):
        self.layers = [
            Layer('layer1'),
            Layer('layer2'),
            Layer('layer3')
        ]

model = Model()
layer_name = 'layer2'

ARGS = {
    'model': model,
    'layer_name': layer_name
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Layer — a Layer output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Layer 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_roc_curve Ran
ran on a synthesized input
Mnpr/OC-DeepLearning/Utils/img_utils.py
code served (permissive licence) · get_code("d811f5c1c652d270")
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
import numpy as np
from unittest.mock import MagicMock

torch.manual_seed(0)

# Create labels (list of strings for the different output classes)
labels = ['class_0', 'class_1', 'class_2']

# Create predicted values as a numpy array (batch_size x num_classes)
# Shape: (10, 3) - 10 samples, 3 classes
predicted_vals = np.random.rand(10, 3)

# Create a mock generator object that has a labels attribute
generator = MagicMock()
# generator.labels should be (batch_size, num_classes)
# Shape: (10, 3) - matching the number of samples and classes
generator.labels = np.random.randint(0, 2, size=(10, 3))

ARGS = {
    'labels': labels,
    'predicted_vals': predicted_vals,
    'generator': generator
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, sklearn, 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
get_tasks Ran
ran; our contract draft was wrong, not the code
SenWu/emmental-tutorials/glue/download_glue_data.py
pointer only (licence: MIT); the stored copy get_code serves, from dinghanshen/Cutoff, is pointer only (licence: NONE) · get_code("18962b43885bc12f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from dinghanshen/Cutoff, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_tensor Ran
ran on a synthesized input
SGNovice/Disease-detection-using-chest-xrays/commons.py
code served (permissive licence) · get_code("d4a498230f440c39")
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 4, dtype family float, shape (1, 3, 224, 224) 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 io
from PIL import Image
import numpy as np

# Create a small valid image in memory
# Create a simple RGB image (3 channels, 100x100 pixels) as PNG bytes
img_array = np.random.randint(0, 256, (100, 100, 3), dtype=np.uint8)
img = Image.fromarray(img_array, mode='RGB')
img_bytes_io = io.BytesIO()
img.save(img_bytes_io, format='PNG')
image_bytes = img_bytes_io.getvalue()

ARGS = {
    'image_bytes': image_bytes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (1, 3, 224, 224) — shape (1, 3, 224, 224) 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_weighted_loss Ran
ran on a synthesized input
Mnpr/OC-DeepLearning/Utils/loss_utils.py
code served (permissive licence) · get_code("b782f8a4ff94df4d")
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 function. 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
import torch
import torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# The function uses K (Keras backend) operations like K.mean, K.log
# We need to mock K or use torch equivalents
# Looking at the function body, it expects:
# - pos_weights: np.array of shape (num_classes,)
# - neg_weights: np.array of shape (num_classes,)
# The returned weighted_loss function expects:
# - y_true: Tensor of shape (num_examples, num_classes)
# - y_pred: Tensor of shape (num_examples, num_classes)

# Create mock Keras backend K since the function uses it
class MockKerasBackend:
    @staticmethod
    def mean(x):
        if isinstance(x, torch.Tensor):
            return torch.mean(x)
        return np.mean(x)
    
    @staticmethod
    def log(x):
        if isinstance(x, torch.Tensor):
            return torch.log(x)
        return np.log(x)

# Inject mock K into builtins so it's available
import builtins
builtins.K = MockKerasBackend()

# Now create the arguments
num_classes = 4
num_examples = 2

pos_weights = np.array([0.5, 0.6, 0.7, 0.8], dtype=np.float32)
neg_weights = np.array([0.2, 0.3, 0.25, 0.35], dtype=np.float32)

ARGS = {
    "pos_weights": pos_weights,
    "neg_weights": neg_weights,
    "epsilon": 1e-07
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
lrate_epoch Ran
ran, honoured the contract we drafted
odokumaci/pneumonia-rsna/pnclassify.py
pointer only (licence: NONE) · get_code("a5d85630dbde2484")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, odokumaci/pneumonia-rsna when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mila Ran
ran on a synthesized input
SGNovice/Disease-detection-using-chest-xrays/commons.py
code served (permissive licence) · get_code("0c0269d8f261c2e5")
How it ran

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

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small input tensor
# The function applies element-wise operations, so any shape works
# Using batch_size=2, feature_dim=4
input_tensor = torch.randn(2, 4)

# beta is a float parameter with default value -0.25
beta_value = -0.25

ARGS = {
    "input": input_tensor,
    "beta": beta_value,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mse_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
SenWu/emmental-tutorials/glue/glue_tasks.py
code served (permissive licence) · get_code("7807bb921c12897c")
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 parameters for mse_loss function
task_name = "task_1"

# Create immediate_output_dict with the expected structure
# The function accesses immediate_ouput_dict[module_name][0][active]
# module_name will be f'{task_name}_pred_head' = 'task_1_pred_head'
# So we need a dict with key 'task_1_pred_head' containing a list/tuple
# where the first element [0] can be indexed with active (boolean mask)
pred_output = torch.randn(2, 4)  # batch size 2, feature dim 4
immediate_ouput_dict = {
    'task_1_pred_head': [pred_output]
}

# Create Y tensor with same batch size
Y = torch.randn(2, 4)

# Create active boolean mask for indexing
active = torch.tensor([True, False])

ARGS = {
    'task_name': task_name,
    'immediate_ouput_dict': immediate_ouput_dict,
    'Y': Y,
    'active': active
}
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
normalize_nd_array Ran
ran on a synthesized input
Azure/AzureChestXRay/AzureChestXRay_AMLWB/Code/src/azure_chestxray_utils.py
pointer only (licence: MIT) · get_code("387c1efccf13f7e6")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, Azure/AzureChestXRay, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

output Ran
ran, honoured the contract we drafted
SenWu/emmental-tutorials/chexnet/task.py
code served (permissive licence) · get_code("f5559f1c12f663be")
How it ran

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

import torch
import torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# The function accesses immediate_ouput_dict[module_name][0] and applies softmax
# So immediate_ouput_dict needs to be a dict where values are indexable (like lists or tuples)
# and the first element is a tensor with at least 2 dimensions (for dim=1 in softmax)

# Create a small tensor: batch size 2, 4 output classes
tensor_output = torch.randn(2, 4)

# Create the immediate_ouput_dict with a module name as key
# The value should be indexable, so wrap tensor in a list
immediate_ouput_dict = {
    "layer1": [tensor_output]
}

# Module name to access
module_name = "layer1"

ARGS = {
    "module_name": module_name,
    "immediate_ouput_dict": immediate_ouput_dict
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
output Ran
ran, honoured the contract we drafted
SenWu/emmental-tutorials/glue/glue_tasks.py
code served (permissive licence) · get_code("1ce4ca882a4b2472")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

# The function accesses immediate_ouput_dict[module_name][0]
# where module_name is constructed from task_name
# So we need a dict with a key like '{task_name}_pred_head'
# and that key should map to a list/sequence with at least one element

task_name = "classification"
module_name = f'{task_name}_pred_head'

# Create a small tensor to be at index 0 of the list
output_tensor = torch.randn(2, 4)

# Build the immediate_ouput_dict with the expected structure
immediate_ouput_dict = {
    module_name: [output_tensor]
}

ARGS = {
    'task_name': task_name,
    'immediate_ouput_dict': immediate_ouput_dict
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
plot_cam_results Ran
ran on a synthesized input
Azure/AzureChestXRay/AzureChestXRay_AMLWB/Code/src/azure_chestxray_cam.py
pointer only (licence: MIT) · get_code("e4aacbed9ef38d69")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, Azure/AzureChestXRay, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

predict Ran
ran; our contract draft was wrong, not the code
dstrick17/Deep-Learning-Project/XRay_app/utils/model_utils.py
code served (permissive licence) · get_code("1de89e0659407359")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal model that accepts an image tensor and outputs disease predictions
class DiseaseModel(nn.Module):
    def __init__(self, num_diseases=14):
        super().__init__()
        self.fc = nn.Linear(4, num_diseases)
    
    def forward(self, x):
        # Flatten input and pass through linear layer
        x = x.view(x.size(0), -1)
        return self.fc(x)

# Construct arguments
model = DiseaseModel(num_diseases=14)
model.eval()

# Create a small image tensor (batch_size=1, channels=1, height=2, width=2)
img_tensor = torch.randn(1, 1, 2, 2)

device = 'cpu'

ARGS = {
    'model': model,
    'img_tensor': img_tensor,
    'device': device
}
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 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
preprocess_image Ran
ran; our contract draft was wrong, not the code
dstrick17/Deep-Learning-Project/XRay_app/utils/preprocessing.py
code served (permissive licence) · get_code("0ce6f4b5e608f7a7")
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 3, dtype family float, shape (3, 224, 224) 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
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create a small PIL Image object (224x224 RGB image)
# The function expects a PIL Image as input
img_array = np.random.randint(0, 256, (224, 224, 3), dtype=np.uint8)
img = Image.fromarray(img_array)

ARGS = {
    "img": img
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (3, 224, 224) — shape (3, 224, 224) 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
tile Ran
ran; our contract draft was wrong, not the code
thibaultwillmann/CheXNet-Pytorch/model.py
pointer only (licence: NONE) · get_code("732062e802565311")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thibaultwillmann/CheXNet-Pytorch when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

true_negatives Ran
ran on a synthesized input
Mnpr/OC-DeepLearning/Utils/eval_utils.py
code served (permissive licence) · get_code("3fb4e876ce3e9212")
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 int64, 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

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

# Create small ground truth array (binary labels: 0 or 1)
y = np.array([0, 1, 0, 1, 0, 1])

# Create model predictions (probabilities between 0 and 1)
y_pred = np.array([0.2, 0.8, 0.3, 0.9, 0.1, 0.4])

# Define threshold
threshold = 0.5

# Construct ARGS dictionary
ARGS = {
    "y": y,
    "y_pred": y_pred,
    "threshold": threshold
}
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 int64, 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
true_positives Ran
ran on a synthesized input
Mnpr/OC-DeepLearning/Utils/eval_utils.py
code served (permissive licence) · get_code("3d0485840aa0f58c")
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 int64, 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

# Create small numpy arrays for ground truth and predictions
np.random.seed(0)

y = np.array([1, 0, 1, 1, 0, 1])  # ground truth labels
y_pred = np.array([0.8, 0.3, 0.6, 0.4, 0.2, 0.9])  # model predictions (probabilities)
threshold = 0.5

ARGS = {
    "y": y,
    "y_pred": y_pred,
    "threshold": threshold,
}
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 int64, 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
unpickled_b64decoded_as_bytes Ran
ran on a synthesized input
Azure/AzureChestXRay/AzureChestXRay_AMLWB/Code/src/score_image_and_cam.py
pointer only (licence: MIT) · get_code("494670e9ddb36e8d")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, Azure/AzureChestXRay, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

caption Not yet run
unverified (harvested, no recorded run)
skaravind/Whatsapp-Radiologist/loreal.py
code served (permissive licence) · get_code("8b83b4cf085aa1e2")
How it ran

no invocation recorded.

ce_loss Not yet run
unverified (harvested, no recorded run)
SenWu/emmental-tutorials/glue/glue_tasks.py
code served (permissive licence) · get_code("188aff3170045ab9")
How it ran

no invocation recorded.

get_mean_std_per_batch Not yet run
unverified (harvested, no recorded run)
Mnpr/OC-DeepLearning/Utils/img_utils.py
code served (permissive licence) · get_code("9a63d14257252b9a")
How it ran

no invocation recorded.

get_score_and_cam_picture Not yet run
unverified (harvested, no recorded run)
Azure/AzureChestXRay/AzureChestXRay_AMLWB/Code/src/azure_chestxray_cam.py
pointer only (licence: MIT) · get_code("0f1e64d7ffdfee1e")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, Azure/AzureChestXRay, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_image Not yet run
unverified (harvested, no recorded run)
Mnpr/OC-DeepLearning/Utils/img_utils.py
code served (permissive licence) · get_code("bc1bdcf24dd0d85e")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
dstrick17/Deep-Learning-Project/XRay_app/utils/model_utils.py
code served (permissive licence) · get_code("7ae48b7e9a8d2e9b")
How it ran

no invocation recorded.

show_next Not yet run
unverified (harvested, no recorded run)
jrzech/reproduce-chexnet/visualize_prediction.py
code served (permissive licence) · get_code("831d63f3b9377e8b")
How it ran

no invocation recorded.

train_model Not yet run
unverified (harvested, no recorded run)
jrzech/reproduce-chexnet/model.py
code served (permissive licence) · get_code("41e9cbb003cda3c5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 37 samples lifted from this paper's linked repositories, 37 carry a function identity and 0 do not. Of the 37 distinct functions with an identity, 4 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 33 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
get_tasks 13 other papers
13 later
1804.07461 (2018-04)
GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1906.02762 (2019-06)
Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of View
and 10 more not named here
tile 4 other papers
4 later
2002.06715 (2020-02)
BatchEnsemble: An Alternative Approach to Efficient Ensemble and Lifelong Learning
2006.07991 (2020-06)
Emergent Properties of Foveated Perceptual Systems
2012.02818 (2020-12)
Encoding the latent posterior of Bayesian Neural Networks for uncertainty quantification
and 1 more not named here
compute_AUCs 1 other paper
1 dated earlier
1705.02315 (2017-05)
ChestX-ray8: Hospital-scale Chest X-ray Database and Benchmarks on Weakly-Supervised Classification and Localization of Common Thorax Diseases
func 1 other paper
1 dated earlier
1705.02315 (2017-05)
ChestX-ray8: Hospital-scale Chest X-ray Database and Benchmarks on Weakly-Supervised Classification and Localization of Common Thorax Diseases

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

More are linked than shown here.

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We develop an algorithm that can detect pneumonia from chest X-rays at a level exceeding practicing radiologists. Our algorithm, CheXNet, is a 121-layer convolutional neural network trained on ChestX-ray14, currently the largest publicly available chest X-ray dataset, containing over 100,000 frontal-view X-ray images with 14 diseases. Four practicing academic radiologists annotate a test set, on which we compare the performance of CheXNet to that of radiologists. We find that CheXNet exceeds average radiologist performance on the F1 metric. We extend CheXNet to detect all 14 diseases in ChestX-ray14 and achieve state of the art results on all 14 diseases.

For agents

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

get_harvested_code_for_paper("1711.05225")
get_code_for_paper("1711.05225")
have("1711.05225")

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

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

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

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

Connect an agent — have() is free.