The viewer is disabled because this dataset repo requires arbitrary Python code execution. Please consider
removing the
loading script
and relying on
automated data support
(you can use
convert_to_parquet
from the datasets
library). If this is not possible, please
open a discussion
for direct help.
AstroM3Dataset
Description
AstroM3Dataset is a time-series astronomy dataset containing photometry, spectra, and metadata features for variable stars.
The dataset includes multiple subsets (full
, sub10
, sub25
, sub50
) and supports different random seeds (42
, 66
, 0
, 12
, 123
).
Each sample consists of:
- Photometry: Light curve data of shape
(N, 3)
(time, flux, flux_error). - Spectra: Spectra observations of shape
(M, 3)
(wavelength, flux, flux_error). - Metadata: Auxiliary features of shape
(38,)
. - Label: The class name as a string.
Corresponding paper and code
- Paper: AstroM3: A self-supervised multimodal model for astronomy
- Code Repository: GitHub: AstroM3
Subsets and Seeds
AstroM3Dataset is available in different subset sizes:
full
: Entire datasetsub50
: 50% subsetsub25
: 25% subsetsub10
: 10% subset
Each subset is sampled from the respective train, validation, and test splits of the full dataset.
For reproducibility, each subset is provided with different random seeds:
42
,66
,0
,12
,123
Data Organization
The dataset is organized as follows:
AstroM3Dataset/
βββ photometry.zip # Contains all photometry light curves
βββ utils/
β βββ parallelzipfile.py # Zip file reader to open photometry.zip
βββ spectra/ # Spectra files organized by class
β βββ EA/
β β βββ file1.dat
β β βββ file2.dat
β β βββ ...
β βββ EW/
β βββ SR/
β βββ ...
βββ splits/ # Train/val/test splits for each subset and seed
β βββ full/
β β βββ 42/
β β β βββ train.csv
β β β βββ val.csv
β β β βββ test.csv
β β β βββ info.json # Contains feature descriptions and preprocessing info
β β βββ 66/
β β βββ 0/
β β βββ 12/
β β βββ 123/
β βββ sub10/
β βββ sub25/
β βββ sub50/
βββ AstroM3Dataset.py # Hugging Face dataset script
Usage
To load the dataset using the Hugging Face datasets
library:
from datasets import load_dataset
# Load the default full dataset with seed 42
dataset = load_dataset("MeriDK/AstroM3Dataset", trust_remote_code=True)
The default configuration is full_42 (entire dataset with seed 42). To load a specific subset and seed, use {subset}_{seed} as the name:
from datasets import load_dataset
# Load the 25% subset sampled using seed 123
dataset = load_dataset("MeriDK/AstroM3Dataset", name="sub25_123", trust_remote_code=True)
Citation
If you find this dataset usefull, please cite:
@article{rizhko2024astrom,
title={AstroM $\^{} 3$: A self-supervised multimodal model for astronomy},
author={Rizhko, Mariia and Bloom, Joshua S},
journal={arXiv preprint arXiv:2411.08842},
year={2024}
}
- Downloads last month
- 8,455