SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1811.08425 · 2018

Fast and interpretable classification of small X-ray diffraction datasets using data augmentation and deep neural networks

arXiv · PDF · Open in the Atlas

Code that ran

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

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1811.08425.json · badge: /api/ran/1811.08425.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
PV-Lab/AUTO-XRD canonical (classifier label)
classifier basis: census
1 ran · 1 no recorded run
PV-Lab/autoXRD reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
ma921/XRDidentifier reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
augdata Ran
ran; our contract draft was wrong, not the code
PV-Lab/autoXRD/autoXRD.py
code served (permissive licence) · get_code("00c7a4306c2ec79e")
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) 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 numpy as np

# Construct valid arguments for augdata function
# Parameters: data, num, par1, minn, maxn

# data: 2D numpy array with shape (len1, w1)
# The function accesses data[:, rnd] where rnd is random int in [0, w1)
len1 = 300  # length dimension
w1 = 5      # width dimension
data = np.random.randn(len1, w1)

# num: number of augmentations to generate
num = 3

# par1: list that is indexed as par1[2*rnd]
# Since rnd ranges from 0 to w1-1, we need par1 to have at least 2*w1 elements
par1 = [np.random.randn() for _ in range(2 * w1)]

# minn, maxn: used for cropping newaugd[minn:maxn, i]
# These define the range for crop_augd which has shape (maxn - minn, num)
minn = 50
maxn = 200

ARGS = {
    "data": data,
    "num": num,
    "par1": par1,
    "minn": minn,
    "maxn": maxn
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — 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
find_incorrects Ran
ran on a synthesized input
PV-Lab/AUTO-XRD/autoXRD_vis.py
code served (permissive licence) · get_code("3da6e7f77ed77400")
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 numpy as np
import pandas as pd

# Analyze the function to understand what it expects:
# - ground_truth: iterable of arrays where each array has shape (n_samples, 2)
#   with first column being indices/ids and second column being truth values
# - predictions_ord: iterable of arrays where each array has predictions for corresponding ground_truth

# Create small sample data
# Each element in ground_truth should be a 2D array with indices in column 0 and truth labels in column 1
ground_truth_1 = np.array([
    [0, 'cat'],
    [1, 'dog'],
    [2, 'cat']
], dtype=object)

ground_truth_2 = np.array([
    [0, 'bird'],
    [1, 'cat'],
], dtype=object)

ground_truth = [ground_truth_1, ground_truth_2]

# predictions_ord should be a list of lists/arrays with predictions
# Each prediction list corresponds to the ground_truth at the same index
predictions_ord = [
    ['cat', 'dog', 'cat'],  # predictions for ground_truth_1
    ['bird', 'dog'],         # predictions for ground_truth_2
]

ARGS = {
    'ground_truth': ground_truth,
    'predictions_ord': predictions_ord,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
normalise Ran
ran, violated the contract we drafted
ma921/XRDidentifier/train_expert.py
pointer only (licence: NONE) · get_code("f1a7af06566be3ed")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ma921/XRDidentifier 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.

normdata Ran
ran, honoured the contract we drafted
PV-Lab/autoXRD/autoXRD.py
code served (permissive licence) · get_code("20dce98251942490")
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) and returned ndarray, ndim 2, dtype family float, shape (2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function normdata takes a 2D numpy array where:
# - First dimension is length (number of rows)
# - Second dimension is width (number of columns)
# - It processes pairs of columns (2*i and 2*i+1)
# - For each pair, it normalizes the odd-indexed column to [0,1] range

# Create a small test data array with shape (len1=2, w1=4)
# This gives us 2 rows and 4 columns, so 2 pairs to normalize
data = np.array([
    [1.0, 10.0, 5.0, 20.0],
    [2.0, 30.0, 8.0, 40.0]
], dtype=np.float64)

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normdatasingle Ran
ran, honoured the contract we drafted
PV-Lab/autoXRD/autoXRD.py
code served (permissive licence) · get_code("ef94397398cdacec")
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) and returned ndarray, ndim 2, dtype family float, shape (5, 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 sample data: 5 samples, 3 features
# Each feature will have different ranges to test normalization
data = np.array([
    [1.0, 10.0, 100.0],
    [2.0, 20.0, 200.0],
    [3.0, 30.0, 300.0],
    [4.0, 40.0, 400.0],
    [5.0, 50.0, 500.0]
], dtype=np.float64)

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 3) — shape (5, 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
random_data_split Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ma921/XRDidentifier/train_expert.py
pointer only (licence: NONE) · get_code("bd71181156fd6add")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ma921/XRDidentifier 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.

spectra_loader Ran
ran; our contract draft was wrong, not the code
ma921/XRDidentifier/train_expert.py
pointer only (licence: NONE) · get_code("285d3f873a799a13")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ma921/XRDidentifier 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_cam Not yet run
unverified (harvested, no recorded run)
PV-Lab/AUTO-XRD/autoXRD_vis.py
code served (permissive licence) · get_code("9e44f4085bfb81d5")
How it ran

no invocation recorded.

Also present in other papers' code

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

X-ray diffraction (XRD) data acquisition and analysis is among the most time-consuming steps in the development cycle of novel thin-film materials. We propose a machine-learning-enabled approach to predict crystallographic dimensionality and space group from a limited number of thin-film XRD patterns. We overcome the scarce-data problem intrinsic to novel materials development by coupling a supervised machine learning approach with a model agnostic, physics-informed data augmentation strategy using simulated data from the Inorganic Crystal Structure Database (ICSD) and experimental data. As a test case, 115 thin-film metal halides spanning 3 dimensionalities and 7 space-groups are synthesized and classified. After testing various algorithms, we develop and implement an all convolutional neural network, with cross validated accuracies for dimensionality and space-group classification of 93% and 89%, respectively. We propose average class activation maps, computed from a global average pooling layer, to allow high model interpretability by human experimentalists, elucidating the root causes of misclassification. Finally, we systematically evaluate the maximum XRD pattern step size (data acquisition rate) before loss of predictive accuracy occurs, and determine it to be 0.16°, which enables an XRD pattern to be obtained and classified in 5.5 minutes or less.

For agents

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

get_harvested_code_for_paper("1811.08425")
get_code_for_paper("1811.08425")
have("1811.08425")

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

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

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

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

Connect an agent — have() is free.