Skip to main content

SpecLess logo

SpecLess

SpecLess is an open-source Python framework for photometry-based machine-learning classification of galaxies.

The project is designed to provide reusable pretrained models, photometric feature-engineering tools, survey-validation workflows, and a collaborative framework for galaxy classification without requiring spectroscopy at inference time.

Current status

SpecLess is currently under active development.

Model 1: Galaxy Morphology

Binary classification:

  • Elliptical
  • Spiral

Primary classifier:

  • XGBoost

Required photometric bands:

  • SDSS u, g, r, i, z
  • WISE W1, W2

SpecLess automatically constructs the 21 colour features used by the pretrained classifier, producing a total of 28 photometric features.

The current Model 1 classifier was trained on 142,212 galaxies and evaluated on an independent test sample of 35,554 galaxies.

Development installation

Clone the repository and install in editable mode:

pip install -e .
import pandas as pd
from specless_astro import MorphologyClassifier

catalog = pd.read_csv("catalog.csv")

model = MorphologyClassifier()

result = model.predict(catalog)

print(
    result[
        [
            "specless_label",
            "p_elliptical",
            "p_spiral",
            "confidence",
        ]
    ]
)

Metadata

Release files for specless-astro 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for specless-astro 0.2.1
File Size Uploaded
specless_astro-0.2.1.tar.gz 5.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for specless-astro 0.2.1
File Interpreter ABI Platform
specless_astro-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 MB

Release files / specless_astro-0.2.1.tar.gz

Download URL specless_astro-0.2.1.tar.gz
Size 5.7 MB
Tags Source
SHA-256 checksum
How to use checksums
530874a84012b99691dfe902855b8815a2a6a5812338e20daf16d739b3b0a64e
BLAKE2b-256 checksum
How to use checksums
191a76d9bdd3782512f3a54ebe8b8328f888829b948c24c0de6ec541f16010a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release files / specless_astro-0.2.1-py3-none-any.whl

Download URL specless_astro-0.2.1-py3-none-any.whl
Size 5.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
aceac9bdccc62641bb6b1d315d154f253a295214f4430457cf29d23846a9c046
BLAKE2b-256 checksum
How to use checksums
eb86fc7767722bb2898d5134e550dbe891a7e94339b154b92a00492a992f1bb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page