SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2010.11202 · 2020

Astronomaly: Personalised Active Anomaly Detection in Astronomical Data

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 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 7 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-22; 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/2010.11202.json · badge: /api/ran/2010.11202.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
MichelleLochner/astronomaly canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
apply_transform Ran
ran on a synthesized input
MichelleLochner/astronomaly/astronomaly/data_management/image_reader.py
code served (permissive licence) · get_code("7b0c87b71ac95639")
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 (32, 32, 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 numpy array as a cutout (simulating an image patch)
cutout = np.random.rand(32, 32, 3).astype(np.float32)

# Define some simple transform functions
def transform1(img):
    """Simple transform: add a constant"""
    return img + 0.1

def transform2(img):
    """Simple transform: multiply by a constant"""
    return img * 2.0

def single_transform(img):
    """A single transform function"""
    return img - 0.05

# Test case 1: List of transform functions
transform_function_list = [transform1, transform2]

# Test case 2: Single transform function (will fail len() check and go to except)
transform_function_single = single_transform

# Test case 3: None (no transform)
transform_function_none = None

# Use the list case as the main argument
ARGS = {
    "cutout": cutout,
    "transform_function": transform_function_list
}
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 3, dtype family float, shape (32, 32, 3) — shape (32, 32, 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
check_if_inputs_same Ran
ran on a synthesized input
MichelleLochner/astronomaly/astronomaly/base/logging_tools.py
code served (permissive licence) · get_code("3366965948bd570b")
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 logging
import tempfile
import os

# Set up a temporary log file with logging configured
temp_log_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.log')
log_filename = temp_log_file.name
temp_log_file.close()

# Configure logging to write to this file
logger = logging.getLogger()
logger.handlers.clear()
file_handler = logging.FileHandler(log_filename)
file_handler.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(message)s')
file_handler.setFormatter(formatter)
logger.addHandler(file_handler)

# Write a sample log entry that the function will parse
with open(log_filename, 'w') as f:
    f.write("2024-01-01 10:00:00 - INFO - MyPipelineStage(param1=value1, param2=value2) - checksum: 12345\n")
    f.write("2024-01-01 10:00:01 - INFO - OtherStage(x=1) - checksum: 54321\n")

# Create the local_variables dict that matches what was logged
local_variables = {
    'param1': 'value1',
    'param2': 'value2',
    'other_var': 'something_else'
}

class_name = 'MyPipelineStage'

ARGS = {
    'class_name': class_name,
    'local_variables': local_variables
}
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, 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
convert_array_to_image Ran
ran on a synthesized input
MichelleLochner/astronomaly/astronomaly/data_management/image_reader.py
code served (permissive licence) · get_code("9cbef16e25f9df38")
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 BytesIO. 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 matplotlib as mpl
import io
from matplotlib.backends.backend_agg import FigureCanvas
import matplotlib.pyplot as plt

# Create a small 2D numpy array to serve as input
# Using shape (4, 3) to have distinct dimensions
arr = np.random.rand(4, 3)

# Define all arguments for the function
ARGS = {
    'arr': arr,
    'plot_cmap': 'hot',
    'interpolation': 'bicubic'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BytesIO — a BytesIO 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
convert_flux_to_mag Ran
ran on a synthesized input
MichelleLochner/astronomaly/astronomaly/data_management/light_curve_reader.py
code served (permissive licence) · get_code("94817d60f2858e8a")
How it ran

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

import numpy as np
import pandas as pd

# Create a small pandas DataFrame with the required columns
np.random.seed(0)

# Create light curve data with flux and flux_error columns
n_points = 5
flux_values = np.array([100.0, 150.0, -5.0, 200.0, 120.0])  # Include a negative value
flux_error_values = np.array([10.0, 12.0, 8.0, 15.0, 11.0])

lcs = pd.DataFrame({
    'flux': flux_values,
    'flux_error': flux_error_values
})

mag_ref = 25.0

ARGS = {
    'lcs': lcs,
    'mag_ref': mag_ref
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_function_call Ran
ran on a synthesized input
MichelleLochner/astronomaly/astronomaly/base/logging_tools.py
code served (permissive licence) · get_code("ef5617e2456de817")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "func_name": "my_function",
    "args": (42, "hello", [1, 2, 3]),
    "kwargs": {"param1": "value1", "param2": 3.14}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
setup_logger Ran
ran on a synthesized input
MichelleLochner/astronomaly/astronomaly/base/logging_tools.py
code served (permissive licence) · get_code("42ec9350309310fd")
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 RootLogger. 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 logging
import os
import tempfile

# Clear any existing handlers to ensure clean state
root_logger = logging.getLogger()
for handler in root_logger.handlers[:]:
    root_logger.removeHandler(handler)

# Create a temporary directory for logging
temp_dir = tempfile.mkdtemp()

ARGS = {
    'log_directory': temp_dir,
    'log_filename': 'astronomaly.log'
}
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 RootLogger — a RootLogger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a RootLogger 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
split_lc Ran
ran on a synthesized input
MichelleLochner/astronomaly/astronomaly/data_management/light_curve_reader.py
code served (permissive licence) · get_code("d3f658fab794ac93")
How it ran

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

import pandas as pd
import numpy as np

# Create sample light curve data
np.random.seed(0)

# Create a simple DataFrame with light curve data
data = {
    'ID': ['obj1', 'obj1', 'obj1', 'obj1', 'obj1', 'obj2', 'obj2', 'obj2'],
    'time': [1.0, 2.0, 3.0, 10.0, 11.0, 5.0, 6.0, 7.0],
    'magnitude': [15.2, 15.3, 15.1, 15.5, 15.4, 16.0, 16.1, 16.2],
    'filters': ['g', 'g', 'g', 'g', 'g', 'r', 'r', 'r']
}

lc_data = pd.DataFrame(data)

# Define the maximum gap parameter
max_gap = 5

ARGS = {
    'lc_data': lc_data,
    'max_gap': max_gap
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

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

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-22.

Repositories linked to this paper

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

Abstract

Survey telescopes such as the Vera C. Rubin Observatory and the Square Kilometre Array will discover billions of static and dynamic astronomical sources. Properly mined, these enormous datasets will likely be wellsprings of rare or unknown astrophysical phenomena. The challenge is that the datasets are so large that most data will never be seen by human eyes; currently the most robust instrument we have to detect relevant anomalies. Machine learning is a useful tool for anomaly detection in this regime. However, it struggles to distinguish between interesting anomalies and irrelevant data such as instrumental artefacts or rare astronomical sources that are simply not of interest to a particular scientist. Active learning combines the flexibility and intuition of the human brain with the raw processing power of machine learning. By strategically choosing specific objects for expert labelling, it minimises the amount of data that scientists have to look through while maximising potential scientific return. Here we introduce Astronomaly: a general anomaly detection framework with a novel active learning approach designed to provide personalised recommendations. Astronomaly can operate on most types of astronomical data, including images, light curves and spectra. We use the Galaxy Zoo dataset to demonstrate the effectiveness of Astronomaly, as well as simulated data to thoroughly test our new active learning approach. We find that for both datasets, Astronomaly roughly doubles the number of interesting anomalies found in the first 100 objects viewed by the user. Astronomaly is easily extendable to include new feature extraction techniques, anomaly detection algorithms and even different active learning approaches. The code is publicly available at https://github.com/MichelleLochner/astronomaly.

For agents

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

get_harvested_code_for_paper("2010.11202")
get_code_for_paper("2010.11202")
have("2010.11202")

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

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

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

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

Connect an agent — have() is free.