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",
        ]
    ]
)

---

### 3. Açık kaynak lisansını ekleyelim

Ben SpecLess için **BSD 3-Clause** seçiyorum. Bilimsel Python projeleri için gayet uygun, permissive bir lisans: insanlar kullanabilir, değiştirebilir ve katkı yapabilir ama telif ve lisans bildirimin korunması gerekir.

```bash
cat > LICENSE <<'EOF'
BSD 3-Clause License

Copyright (c) 2026, Uzay Aydın
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice,
   this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors
   may be used to endorse or promote products derived from this software
   without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

Metadata

Release files for specless-astro 0.2.0

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.0
File Size Uploaded
specless_astro-0.2.0.tar.gz 5.7 MB Details

Built distribution (wheel)

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

Total release size: 11.5 MB

Release files / specless_astro-0.2.0.tar.gz

Download URL specless_astro-0.2.0.tar.gz
Size 5.7 MB
Tags Source
SHA-256 checksum
How to use checksums
e82277ee60601e05edae507f4cd21aec5cfd2232bc935752897c6063eb0faac4
BLAKE2b-256 checksum
How to use checksums
196b271234bd88d6be87b1dc4c74707fc10b39db5d0192cb635d5ddbcbcf235e
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.0-py3-none-any.whl

Download URL specless_astro-0.2.0-py3-none-any.whl
Size 5.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c8f1d50d9ec40764e7d309c01e286765bd8fc427f64d8677c4b7a2ad13d39482
BLAKE2b-256 checksum
How to use checksums
9d9f23ba6ea5b3871c67310964b566034ba6eec9e8c9ac48e4c9615eafb2372d
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

0.2.1

2 release files

This release

0.2.0 This release

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