SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1603.00882 · 2016

Photometric Supernova Classification With Machine Learning

arXiv · PDF · Open in the Atlas

Code that ran

9 of 16 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 9 have no contract verdict; 0 failures of our instrument; 7 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/1603.00882.json · badge: /api/ran/1603.00882.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
LSSTDESC/snmachine community (classifier label)
classifier basis not recorded on the link
9 ran · 7 no recorded run
FunctionStatusWhere it lives
choose_z_ddf_plasticc Ran
ran on a synthesized input
LSSTDESC/snmachine/snmachine/snaugment.py
code served (permissive licence) · get_code("465d504fd4834319")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

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

# Create a RandomState object for the random_state parameter
random_state = np.random.RandomState(42)

# Create pb_wavelengths dict with the required keys
# The function uses: 'lsstz', 'lssty', 'lsstg', 'lsstu'
# These are wavelengths in nanometers (typical LSST passbands)
pb_wavelengths = {
    'lsstz': 950.0,   # z-band wavelength
    'lssty': 1000.0,  # y-band wavelength
    'lsstg': 480.0,   # g-band wavelength
    'lsstu': 370.0,   # u-band wavelength
}

# Create z_ori (original redshift) - a reasonable value for a supernova
z_ori = 0.5

ARGS = {
    'z_ori': z_ori,
    'pb_wavelengths': pb_wavelengths,
    'random_state': random_state,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
choose_z_wfd_basev2 Ran
ran on a synthesized input
LSSTDESC/snmachine/snmachine/snaugment.py
code served (permissive licence) · get_code("3927266a6de30cf1")
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 float64, ndim 0, 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

# Create a random state object
random_state = np.random.RandomState(42)

# Define pb_wavelengths dict with the required keys
pb_wavelengths = {
    'lsstz': 950.0,
    'lssty': 1000.0,
    'lsstg': 470.0,
    'lsstu': 350.0,
}

# Define a reasonable redshift value
z_ori = 0.5

ARGS = {
    'z_ori': z_ori,
    'pb_wavelengths': pb_wavelengths,
    'random_state': random_state,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
choose_z_wfd_plasticc Ran
ran on a synthesized input
LSSTDESC/snmachine/snmachine/snaugment.py
code served (permissive licence) · get_code("895b849eb5532c5d")
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 float64, ndim 0, 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

# Create a random state for reproducibility
random_state = np.random.RandomState(42)

# Define pb_wavelengths dict with the required keys
# These are typical LSST passband wavelengths in nanometers
pb_wavelengths = {
    'lssty': 500.0,   # y-band central wavelength
    'lsstz': 650.0,   # z-band central wavelength
    'lsstg': 480.0,   # g-band central wavelength
    'lsstu': 350.0,   # u-band central wavelength
}

# Set a typical redshift value for the original event
z_ori = 0.5

ARGS = {
    'z_ori': z_ori,
    'pb_wavelengths': pb_wavelengths,
    'random_state': random_state,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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_chisq_over_pts Ran
ran on a synthesized input
LSSTDESC/snmachine/snmachine/chisq.py
code served (permissive licence) · get_code("11753bd91b6d0661")
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 float64, ndim 0, 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 pandas as pd
import numpy as np
from scipy import interpolate

# Create sample data for obj_data (real observations)
obj_data = pd.DataFrame({
    'mjd': np.array([0.0, 1.0, 2.0, 3.0, 4.0]),
    'flux': np.array([100.0, 110.0, 105.0, 115.0, 120.0]),
    'flux_error': np.array([5.0, 5.5, 5.2, 5.8, 6.0]),
    'passband': ['g', 'g', 'r', 'r', 'i']
})

# Create sample data for obj_model (computed/interpolated model)
# Use more points to ensure smooth interpolation for cubic spline
obj_model = pd.DataFrame({
    'mjd': np.array([0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0]),
    'flux': np.array([99.0, 105.0, 111.0, 108.0, 104.0, 110.0, 116.0, 118.0, 119.0]),
    'flux_error': np.array([5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0]),
    'passband': ['g', 'g', 'g', 'r', 'r', 'r', 'r', 'i', 'i']
})

ARGS = {
    'obj_data': obj_data,
    'obj_model': obj_model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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_dict_chisq_over_pts_per_label Ran
ran on a synthesized input
LSSTDESC/snmachine/snmachine/analysis.py
code served (permissive licence) · get_code("c50e52902cbd66ab")
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 numpy as np
import pandas as pd

class MockDataset:
    """Mock Dataset object that mimics sndata.Dataset behavior"""
    def __init__(self, labels=None):
        self.labels = labels
        self._chisq_data = {
            'obj_1': 0.95,
            'obj_2': 1.15,
            'obj_3': 0.85,
            'obj_4': 1.25,
        }
    
    def compute_chisq_over_pts(self):
        """Returns dictionary of chi-squared over number of points per object"""
        return self._chisq_data

# Create a dataset with labels
labels_data = pd.Series(['type_a', 'type_a', 'type_b', 'type_b'])
dataset = MockDataset(labels=labels_data)

ARGS = {
    'dataset': dataset
}
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 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_MAP Ran
ran on a synthesized input
LSSTDESC/snmachine/snmachine/snfeatures.py
code served (permissive licence) · get_code("f86e8b1bc86f403e")
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 tempfile
import os

# Create a temporary directory and files that mimic multinest output
temp_dir = tempfile.mkdtemp()
chain_name = os.path.join(temp_dir, "test_chain_")

# Create a mock stats.dat file with MAP section
stats_content = """Some header line
Another header line
param1 param2 param3
MAP estimate:
0.5 1.2
0.5 1.5
0.5 2.3
"""

stats_file = chain_name + "stats.dat"
with open(stats_file, 'w') as f:
    f.write(stats_content)

ARGS = {
    "chain_name": chain_name
}
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 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_chisq_over_pts_per_obj Ran
ran on a synthesized input
LSSTDESC/snmachine/snmachine/analysis.py
code served (permissive licence) · get_code("583dc69fff7b57b6")
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

class MockDataset:
    """Mock Dataset object with compute_chisq_over_pts method"""
    
    def __init__(self):
        self.objects = {
            'SN2020A': 1.23,
            'SN2020B': 0.87,
            'SN2020C': 1.56
        }
    
    def compute_chisq_over_pts(self):
        """Returns a dictionary of object names to reduced chi-squared values"""
        return self.objects


dataset = MockDataset()

ARGS = {
    'dataset': dataset
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
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
get_directories Ran
ran on a synthesized input
LSSTDESC/snmachine/snmachine/utils/plasticc_pipeline.py
code served (permissive licence) · get_code("0841e79d5023f0f4")
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 os
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_base = tempfile.mkdtemp()

# Create the analysis directory structure
analyses_directory = temp_base
analysis_name = "test_analysis"
analysis_path = os.path.join(analyses_directory, analysis_name)
os.makedirs(analysis_path, exist_ok=True)

# Create the required subdirectories
os.makedirs(os.path.join(analysis_path, 'wavelet_features'), exist_ok=True)
os.makedirs(os.path.join(analysis_path, 'classifications'), exist_ok=True)
os.makedirs(os.path.join(analysis_path, 'intermediate_files'), exist_ok=True)
os.makedirs(os.path.join(analysis_path, 'plots'), exist_ok=True)

ARGS = {
    'analyses_directory': analyses_directory,
    'analysis_name': analysis_name
}
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
is_dataset_in_t_range Ran
ran on a synthesized input
LSSTDESC/snmachine/snmachine/gps.py
code served (permissive licence) · get_code("bd0861c1bbf3493c")
How it ran

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

import numpy as np

class MockDataset:
    """Mock sndata Dataset class with the required interface."""
    def __init__(self, object_names, data):
        self.object_names = object_names
        self.data = data

# Create sample data for multiple objects
# Each object has 'mjd' (Modified Julian Date) measurements
object_names = ['object_1', 'object_2']
data = {
    'object_1': {
        'mjd': np.array([58000.5, 58010.3, 58020.1])
    },
    'object_2': {
        'mjd': np.array([58005.2, 58015.8, 58025.4])
    }
}

dataset = MockDataset(object_names, data)
t_min = 57990.0
t_max = 58030.0

ARGS = {
    'dataset': dataset,
    't_min': t_min,
    't_max': t_max
}
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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
are_sncosmo_aliases Not yet run
unverified (harvested, no recorded run)
LSSTDESC/snmachine/snmachine/utils/extra_utils.py
code served (permissive licence) · get_code("07563d22a4817fe4")
How it ran

no invocation recorded.

compute_overall_chisq Not yet run
unverified (harvested, no recorded run)
LSSTDESC/snmachine/snmachine/chisq.py
code served (permissive licence) · get_code("83df99a95f476153")
How it ran

no invocation recorded.

compute_overall_chisq_over_pts Not yet run
unverified (harvested, no recorded run)
LSSTDESC/snmachine/snmachine/chisq.py
code served (permissive licence) · get_code("b4c92cf940634495")
How it ran

no invocation recorded.

get_tsne Not yet run
unverified (harvested, no recorded run)
LSSTDESC/snmachine/snmachine/tsne_plot.py
code served (permissive licence) · get_code("b5e495440a699c33")
How it ran

no invocation recorded.

load_configuration_file Not yet run
unverified (harvested, no recorded run)
LSSTDESC/snmachine/snmachine/utils/plasticc_pipeline.py
code served (permissive licence) · get_code("84b6c66eabd7320a")
How it ran

no invocation recorded.

load_dataset Not yet run
unverified (harvested, no recorded run)
LSSTDESC/snmachine/snmachine/utils/plasticc_pipeline.py
code served (permissive licence) · get_code("774709756ed73405")
How it ran

no invocation recorded.

plot_confusion_matrix Not yet run
unverified (harvested, no recorded run)
LSSTDESC/snmachine/snmachine/analysis.py
code served (permissive licence) · get_code("88da824ebaae134c")
How it ran

no invocation recorded.

Also present in other papers' code

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

Automated photometric supernova classification has become an active area of research in recent years in light of current and upcoming imaging surveys such as the Dark Energy Survey (DES) and the Large Synoptic Survey Telescope, given that spectroscopic confirmation of type for all supernovae discovered will be impossible. Here, we develop a multi-faceted classification pipeline, combining existing and new approaches. Our pipeline consists of two stages: extracting descriptive features from the light curves and classification using a machine learning algorithm. Our feature extraction methods vary from model-dependent techniques, namely SALT2 fits, to more independent techniques fitting parametric models to curves, to a completely model-independent wavelet approach. We cover a range of representative machine learning algorithms, including naive Bayes, k-nearest neighbors, support vector machines, artificial neural networks and boosted decision trees (BDTs). We test the pipeline on simulated multi-band DES light curves from the Supernova Photometric Classification Challenge. Using the commonly used area under the curve (AUC) of the Receiver Operating Characteristic as a metric, we find that the SALT2 fits and the wavelet approach, with the BDTs algorithm, each achieves an AUC of 0.98, where 1 represents perfect classification. We find that a representative training set is essential for good classification, whatever the feature set or algorithm, with implications for spectroscopic follow-up. Importantly, we find that by using either the SALT2 or the wavelet feature sets with a BDT algorithm, accurate classification is possible purely from light curve data, without the need for any redshift information.

For agents

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

get_harvested_code_for_paper("1603.00882")
get_code_for_paper("1603.00882")
have("1603.00882")

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

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

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

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

Connect an agent — have() is free.