Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
spec_id
int64
1
54.4k
plate
int64
266
3.48k
mjd
int64
51.6k
55k
fiber
int64
1
640
ra
float64
0.01
361
dec
float64
-19.51
84.8
snr
float64
10
121
rv_adop
float64
-937.44
959
rv_adop_unc
float64
0.39
80.9
flux
listlengths
2.07k
3.86k
loglam
listlengths
2.07k
3.86k
ivar
listlengths
2.07k
3.86k
mask
listlengths
2.07k
3.86k
processed_flux
listlengths
4k
4k
catalog_teff
float64
4k
9.19k
catalog_teff_unc
float64
0.07
2.18k
catalog_feh
float64
-4.38
0.74
catalog_feh_unc
float64
0
1.19
catalog_logg
float64
0.18
4.93
catalog_logg_unc
float64
0
2
21,143
2,316
53,757
580
130.84631
54.660707
43.37117
-38.256733
1.497676
[557.3355102539062,474.0354309082031,414.3138122558594,402.5141906738281,471.3084716796875,524.51788(...TRUNCATED)
[3.581899881362915,3.5820000171661377,3.5820999145507812,3.582200050354004,3.5822999477386475,3.5824(...TRUNCATED)
[0.003962410613894463,0.005061705131083727,0.006051699165254831,0.006163685582578182,0.0052459919825(...TRUNCATED)
[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED)
[0.5708624124526978,0.5708624124526978,0.5708624124526978,0.5708624124526978,0.5708624124526978,0.57(...TRUNCATED)
6,190.742188
26.700251
-0.414864
0.018731
3.979995
0.058094
9,019
1,507
53,763
38
34.897383
-0.255897
34.30904
-265.417603
3.35289
[84.61724090576172,79.65119934082031,69.70558166503906,65.12545013427734,74.57811737060547,70.148582(...TRUNCATED)
[3.5815000534057617,3.5815999507904053,3.581700086593628,3.5817999839782715,3.581899881362915,3.5820(...TRUNCATED)
[0.03482606261968613,0.03718198463320732,0.039153702557086945,0.041311800479888916,0.039595153182744(...TRUNCATED)
[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED)
[1.1161481142044067,1.1161481142044067,1.1161481142044067,1.1161481142044067,1.1161481142044067,1.11(...TRUNCATED)
6,168.189453
29.294548
-1.378185
0.060544
3.923944
0.137695
10,393
1,735
53,035
453
114.41749
43.311396
21.869402
-17.138226
4.252444
[10.039057731628418,9.031828880310059,11.511866569519043,15.662054061889648,23.2899112701416,21.8679(...TRUNCATED)
[3.5796000957489014,3.579699993133545,3.5797998905181885,3.579900026321411,3.5799999237060547,3.5801(...TRUNCATED)
[0.1209186241030693,0.12007613480091095,0.11129195243120193,0.10375475883483887,0.09668151289224625,(...TRUNCATED)
[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED)
[-1.3575533628463745,-1.3575533628463745,-1.3575533628463745,-1.3575533628463745,-1.3575533628463745(...TRUNCATED)
6,861.916504
27.529579
-0.820797
0.069745
3.820423
0.107704
28,676
2,620
54,397
593
336.75824
39.449731
54.855282
-48.950325
1.841515
[196.0859832763672,195.03741455078125,184.22305297851562,164.29116821289062,135.99002075195312,118.5(...TRUNCATED)
[3.5810000896453857,3.5810999870300293,3.581199884414673,3.5813000202178955,3.581399917602539,3.5815(...TRUNCATED)
[0.007614532019942999,0.007034676149487495,0.00680245365947485,0.006851639598608017,0.00716856494545(...TRUNCATED)
[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED)
[1.6507368087768555,1.6507368087768555,1.6507368087768555,1.6507368087768555,1.6507368087768555,1.65(...TRUNCATED)
6,107.009277
20.18713
-0.860105
0.012153
4.085828
0.03542
4,346
1,039
52,707
125
195.8696
53.364998
24.752724
-155.79393
3.01687
[28.64398956298828,29.542932510375977,29.169532775878906,38.984439849853516,30.937942504882812,22.06(...TRUNCATED)
[3.5796000957489014,3.579699993133545,3.5797998905181885,3.579900026321411,3.5799999237060547,3.5801(...TRUNCATED)
[0.029252734035253525,0.036964017897844315,0.037363115698099136,0.03690951317548752,0.04024084284901(...TRUNCATED)
[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED)
[-1.1494340896606445,-1.1494340896606445,-1.1494340896606445,-1.1494340896606445,-1.1494340896606445(...TRUNCATED)
5,382.427246
45.878708
-1.597397
0.049207
4.265256
0.024308
9,553
1,601
53,115
446
161.96641
12.574515
16.378536
878.388306
8.451345
[11.278592109680176,12.793712615966797,10.714624404907227,8.970525741577148,7.42766809463501,5.66503(...TRUNCATED)
[3.580199956893921,3.5803000926971436,3.580399990081787,3.5804998874664307,3.5806000232696533,3.5806(...TRUNCATED)
[0.11086894571781158,0.11405368894338608,0.1209462508559227,0.1302759200334549,0.13383162021636963,0(...TRUNCATED)
[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED)
[-1.4443784952163696,-1.4443784952163696,-1.4443784952163696,-1.4443784952163696,-1.4443784952163696(...TRUNCATED)
5,142.208984
214.341675
-1.025839
0.100633
3.947216
0.388695
50,025
3,293
54,921
167
130.11119
5.228869
35.899399
55.755997
4.063596
[21.133567810058594,23.915163040161133,28.319353103637695,25.60286521911621,27.041126251220703,33.74(...TRUNCATED)
[3.5806000232696533,3.580699920654297,3.5808000564575195,3.580899953842163,3.5810000896453857,3.5810(...TRUNCATED)
[0.06557212024927139,0.09371578693389893,0.09353676438331604,0.11058051884174347,0.1151292473077774,(...TRUNCATED)
[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED)
[-0.6832394599914551,-0.6832394599914551,-0.6832394599914551,-0.6832394599914551,-0.6832394599914551(...TRUNCATED)
5,933.097168
35.81657
-2.40038
0.057837
3.822891
0.15055
50,774
3,305
54,945
271
183.48571
54.675338
48.311001
-16.209793
0.881515
[6.723942756652832,4.601561069488525,3.2844882011413574,4.991843223571777,3.4221363067626953,7.89795(...TRUNCATED)
[3.581899881362915,3.5820000171661377,3.5820999145507812,3.582200050354004,3.5822999477386475,3.5824(...TRUNCATED)
[0.4628080129623413,0.5002970099449158,0.47380369901657104,0.4694923162460327,0.4739544689655304,0.4(...TRUNCATED)
[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED)
[-2.769055128097534,-2.769055128097534,-2.769055128097534,-2.769055128097534,-2.769055128097534,-2.7(...TRUNCATED)
4,664.71875
36.877384
-0.459837
0.0145
4.395648
0.087522
46,322
3,216
54,908
535
170.63428
47.634827
39.004826
-87.178329
2.422157
[26.919998168945312,22.788551330566406,21.985815048217773,25.787137985229492,26.60739517211914,25.95(...TRUNCATED)
[3.5804998874664307,3.5806000232696533,3.580699920654297,3.5808000564575195,3.580899953842163,3.5810(...TRUNCATED)
[0.1790631264448166,0.1970684677362442,0.20993618667125702,0.2115514874458313,0.2171107530593872,0.2(...TRUNCATED)
[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED)
[-0.8766862154006958,-0.8766862154006958,-0.8766862154006958,-0.8766862154006958,-0.8766862154006958(...TRUNCATED)
5,091.160645
44.477909
-1.746598
0.027145
2.101444
0.105994
53,335
3,395
55,004
624
190.38112
35.7596
14.218928
-28.74147
7.872804
[8.561912536621094,6.883918285369873,7.402679920196533,9.354615211486816,9.746590614318848,11.330122(...TRUNCATED)
[3.582900047302246,3.5829999446868896,3.5831000804901123,3.583199977874756,3.5833001136779785,3.5834(...TRUNCATED)
[0.2903335392475128,0.3060668706893921,0.3159101903438568,0.31846678256988525,0.33324727416038513,0.(...TRUNCATED)
[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED)
[0.5641460418701172,0.5641460418701172,0.5641460418701172,0.5641460418701172,0.5641460418701172,0.56(...TRUNCATED)
6,377.594727
59.797176
-2.359381
0.1138
4.072518
0.434546
End of preview. Expand in Data Studio

SDSS DR12 Stellar Spectra 30k/5k/15k Parquet Benchmark

This dataset provides a fixed supervised benchmark split for stellar atmospheric parameter estimation from SDSS DR12 optical spectra.

It contains three Parquet files:

train.parquet
validation.parquet
test.parquet

The split sizes are:

Split Number of spectra
Train 30,000
Validation 5,000
Test 15,000

Each row corresponds to one SDSS stellar spectrum and includes raw spectral arrays, processed spectral features, source identifiers, basic metadata, and catalog stellar-parameter labels with uncertainties.

Files

train.parquet

Training split used for model fitting.

validation.parquet

Validation split used for model selection and hyperparameter tuning.

test.parquet

Held-out test split used only for final evaluation.

Columns

Column Description
spec_id Internal spectrum identifier used to align the split with the downloaded FITS files
plate SDSS plate identifier
mjd Modified Julian Date of the observation
fiber SDSS fiber identifier
ra Right ascension in degrees
dec Declination in degrees
snr Signal-to-noise ratio from the source catalog, when available
rv_adop Adopted radial velocity from the source catalog
rv_adop_unc Uncertainty of the adopted radial velocity
flux Raw SDSS flux array from the FITS spectrum
loglam Log10 wavelength array corresponding to flux
ivar Inverse variance array from the FITS spectrum
mask Boolean mask where invalid or non-positive-inverse-variance pixels are marked
processed_flux Fixed-length processed spectral feature vector used by the benchmark models
catalog_teff Adopted catalog effective temperature
catalog_teff_unc Uncertainty of catalog_teff
catalog_feh Adopted catalog metallicity [Fe/H]
catalog_feh_unc Uncertainty of catalog_feh
catalog_logg Adopted catalog surface gravity
catalog_logg_unc Uncertainty of catalog_logg

Target Labels

The supervised regression targets are the adopted catalog stellar parameters:

Target Description Unit
catalog_teff Effective temperature K
catalog_feh Metallicity relative to solar dex
catalog_logg Surface gravity dex

The corresponding uncertainty columns are:

catalog_teff_unc
catalog_feh_unc
catalog_logg_unc

These are taken from the catalog uncertainty fields:

TEFF_ADOP_UNC
FEH_ADOP_UNC
LOGG_ADOP_UNC

Loading the Dataset

from datasets import load_dataset

dataset = load_dataset("BrunoBarreto/sdss_dr12_stars_regression")

train = dataset["train"]
validation = dataset["validation"]
test = dataset["test"]

print(train[0].keys())

Example: Training on Processed Flux

import numpy as np

from sklearn.linear_model import RidgeCV
from sklearn.metrics import mean_absolute_error

X_train = np.stack(train["processed_flux"]).astype("float32")
X_test = np.stack(test["processed_flux"]).astype("float32")

y_train = np.array(
    [
        train["catalog_teff"],
        train["catalog_feh"],
        train["catalog_logg"],
    ],
    dtype="float32",
).T

y_test = np.array(
    [
        test["catalog_teff"],
        test["catalog_feh"],
        test["catalog_logg"],
    ],
    dtype="float32",
).T

alphas = np.logspace(-3, 3, 13)

print("Ridge ...")
model = RidgeCV(alphas=alphas)
model.fit(X_train, y_train)

pred = model.predict(X_test)

mae = mean_absolute_error(y_test, pred, multioutput="raw_values")

print(f"MAE Teff:   {mae[0]:.2f} K")
print(f"MAE [Fe/H]: {mae[1]:.3f} dex")
print(f"MAE logg:   {mae[2]:.3f} dex")

The raw arrays can be used to build custom preprocessing pipelines or to feed models that require native observed-frame spectra.

Paper: arxiv.org/abs/2606.13868

Downloads last month
53

Paper for BrunoBarreto/sdss_dr12_stars_regression