Datasets:
spec_id string | source_fits_filename string | class_label string | class_id int8 | plate int32 | mjd int32 | fiber int32 | redshift float32 | official_snr float32 | native_flux list | native_loglam list | native_ivar list | native_mask list | native_and_mask list | native_or_mask list | processed_flux list | processed_ivar list | native_min_loglam float32 | native_max_loglam float32 | native_n_samples int32 | derived_valid_pixel_fraction float32 | derived_median_abs_snr float32 | catalog_specobjid string | catalog_bestobjid string | catalog_objid string | catalog_survey string | catalog_instrument string | catalog_programname string | catalog_run2d string | catalog_platequality string | catalog_class string | catalog_subclass string | catalog_class_noqso string | catalog_subclass_noqso string | catalog_plug_ra float32 | catalog_plug_dec float32 | catalog_redshift float32 | catalog_redshift_err float32 | catalog_redshift_noqso float32 | catalog_sn_median_all float32 | catalog_sn_median float32 | catalog_zwarning int64 | catalog_specprimary int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6140-56189-807 | spec-6140-56189-0807-GALAXY--0.36218.fits | GALAXY | 0 | 6,140 | 56,189 | 807 | 0.36218 | 6.830406 | [3.3503057956695557,-0.5999736785888672,-4.569064617156982,-1.9607692956924438,5.870113849639893,0.3(...TRUNCATED) | [3.5571999549865723,3.557300090789795,3.5573999881744385,3.557499885559082,3.5576000213623047,3.5576(...TRUNCATED) | [0.09803120046854019,0.11452867835760117,0.13039100170135498,0.1234649047255516,0.10459505766630173,(...TRUNCATED) | [false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED) | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | [0,0,0,0,0,0,0,0,0,0,33554432,33554432,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | [1.2279630899429321,1.3139281272888184,1.4006965160369873,1.4866615533828735,1.5635175704956055,1.54(...TRUNCATED) | [13.174318313598633,12.98074722290039,12.78536605834961,12.591794967651367,12.422532081604004,12.508(...TRUNCATED) | 3.5572 | 4.0166 | 4,595 | 0.996736 | 6.590496 | 6913247358320138240 | 1237678600225488976 | [7713 301 1 139 80] | boss | BOSS | boss | v5_13_2 | good | GALAXY | null | GALAXY | null | 345.810883 | 15.581602 | 0.362177 | 0.00006 | 0.362177 | 6.830406 | null | 0 | 1 |
1054-52516-393 | spec-1054-52516-0393-GALAXY--0.13786.fits | GALAXY | 0 | 1,054 | 52,516 | 393 | 0.13786 | 14.440353 | [-3.3611414432525635,2.082340955734253,2.5126075744628906,0.3306342661380768,2.2955825328826904,4.49(...TRUNCATED) | [3.5806000232696533,3.580699920654297,3.5808000564575195,3.580899953842163,3.5810000896453857,3.5810(...TRUNCATED) | [0.12004058808088303,0.10343768447637558,0.10170745104551315,0.10515149682760239,0.10490448772907257(...TRUNCATED) | [false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED) | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | [1114128,1114128,1114128,1114128,1114128,1114128,65552,65552,1114128,1114128,1114128,1114128,1114128(...TRUNCATED) | [11.48305606842041,11.656563758850098,11.831693649291992,12.00520133972168,12.148286819458008,11.978(...TRUNCATED) | [0.9278830885887146,0.917802095413208,0.9076269268989563,0.8975459337234497,0.8798165321350098,0.788(...TRUNCATED) | 3.5806 | 3.9645 | 3,840 | 1 | 14.406822 | 1186806571041056768 | 1237659119331180696 | [3177 0 3 194 134] | sdss | SDSS | legacy | 26 | good | GALAXY | null | null | null | 237.75061 | 40.420135 | 0.137863 | 0.000026 | 0 | 14.440353 | null | 0 | 1 |
3951-55681-145 | spec-3951-55681-0145-GALAXY--0.58163.fits | GALAXY | 0 | 3,951 | 55,681 | 145 | 0.58163 | 2.066226 | [-5.631524085998535,51.066917419433594,-56.7066650390625,57.32625198364258,-36.23467254638672,17.679(...TRUNCATED) | [3.550800085067749,3.5508999824523926,3.5510001182556152,3.551100015640259,3.5511999130249023,3.5513(...TRUNCATED) | [0.04028638079762459,0.05405835062265396,0.07057392597198486,0.07553546130657196,0.07834066450595856(...TRUNCATED) | [false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED) | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | [71303168,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(...TRUNCATED) | [-0.23173090815544128,-0.16098061203956604,-0.08956911414861679,-0.018818823620676994,0.058327607810(...TRUNCATED) | [11.754769325256348,11.85830307006836,11.962804794311523,12.066338539123535,12.126008987426758,11.74(...TRUNCATED) | 3.5508 | 4.014 | 4,633 | 0.996978 | 2.07844 | 4448470484544411648 | 1237665565539696751 | [4678 301 2 186 111] | boss | BOSS | boss | v5_13_2 | good | GALAXY | null | GALAXY | null | 229.424072 | 17.818712 | 0.58163 | 0.000155 | 0.58163 | 2.066226 | null | 0 | 1 |
4850-55929-262 | spec-4850-55929-0262-GALAXY--0.54548.fits | GALAXY | 0 | 4,850 | 55,929 | 262 | 0.54548 | 1.61612 | [12.410575866699219,-3.1366240978240967,0.4151648283004761,6.018368244171143,-12.134474754333496,3.0(...TRUNCATED) | [3.5511999130249023,3.551300048828125,3.5513999462127686,3.551500082015991,3.5515999794006348,3.5517(...TRUNCATED) | [0.10171562433242798,0.08896918594837189,0.09010902047157288,0.10017897933721542,0.11314168572425842(...TRUNCATED) | [false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED) | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | [0.026709668338298798,0.09972222149372101,0.1734171360731125,0.2464296817779541,0.31588631868362427,(...TRUNCATED) | [14.138323783874512,14.219499588012695,14.301434516906738,14.382610321044922,14.44532299041748,14.32(...TRUNCATED) | 3.5512 | 4.0145 | 4,634 | 0.99331 | 1.662076 | 5460686665671792640 | 1237654606940275043 | [2126 301 6 333 355] | boss | BOSS | boss | v5_13_2 | good | GALAXY | null | GALAXY | null | 169.013962 | 5.93271 | 0.545475 | 0.00019 | 0.545475 | 1.61612 | null | 0 | 1 |
1689-53177-47 | spec-1689-53177-0047-STAR-M3--0.00009.fits | STAR | 2 | 1,689 | 53,177 | 47 | 0.00009 | 17.103079 | [4.830880641937256,1.8405191898345947,2.1542582511901855,-1.06131112575531,0.5218468904495239,2.8185(...TRUNCATED) | [3.5804998874664307,3.5806000232696533,3.580699920654297,3.5808000564575195,3.580899953842163,3.5810(...TRUNCATED) | [0.12256500869989395,0.13768018782138824,0.1380930244922638,0.14536646008491516,0.13710704445838928,(...TRUNCATED) | [false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED) | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | [1048576,1048576,1048576,1048576,1048576,1048576,1048576,1048576,1048576,1048576,1048576,1048576,104(...TRUNCATED) | [7.611648082733154,7.659470081329346,7.707739353179932,7.755561351776123,7.803199291229248,7.8442692(...TRUNCATED) | [1.5624231100082397,1.5533381700515747,1.54416823387146,1.5350831747055054,1.525536298751831,1.51241(...TRUNCATED) | 3.5805 | 3.9644 | 3,840 | 0.966667 | 17.228119 | 1901657915220060160 | 1237662505376678221 | [3964 41 4 323 666] | sdss | SDSS | legacy | 26 | good | STAR | M3 | null | null | 257.502747 | 21.459145 | -0.000091 | 0.000018 | 0 | 17.103079 | null | 0 | 1 |
7037-56570-48 | spec-7037-56570-0048-GALAXY--0.24252.fits | GALAXY | 0 | 7,037 | 56,570 | 48 | 0.24252 | 13.931235 | [-1.000910758972168,-0.8372513055801392,-0.6735630035400391,-2.2075209617614746,7.104333400726318,-5(...TRUNCATED) | [3.551800012588501,3.5518999099731445,3.552000045776367,3.5520999431610107,3.5522000789642334,3.5522(...TRUNCATED) | [0.04904528707265854,0.0,0.048727620393037796,0.045398201793432236,0.045323166996240616,0.0492112562(...TRUNCATED) | [false,true,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fals(...TRUNCATED) | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | [3.211171865463257,3.3116860389709473,3.413139581680298,3.5136537551879883,3.6137797832489014,3.7000(...TRUNCATED) | [8.314352989196777,8.413498878479004,8.513571739196777,8.612716674804688,8.695389747619629,8.6083536(...TRUNCATED) | 3.5518 | 4.0145 | 4,628 | 0.994814 | 13.551082 | 7922970948818720768 | 1237679322311884904 | [7881 301 2 63 104] | boss | BOSS | boss | v5_13_2 | good | GALAXY | null | GALAXY | null | 6.229366 | -5.788984 | 0.242521 | 0.000033 | 0.242521 | 13.931235 | null | 0 | 1 |
7764-58042-893 | spec-7764-58042-0893-QSO-BROADLINE-2.29138.fits | QSO | 1 | 7,764 | 58,042 | 893 | 2.29138 | 4.99781 | [1.6730149984359741,1.7753841876983643,1.8778282403945923,0.04156267270445824,2.841775894165039,4.07(...TRUNCATED) | [3.5553998947143555,3.555500030517578,3.5555999279022217,3.5557000637054443,3.555799961090088,3.5559(...TRUNCATED) | [0.10408913344144821,0.0,0.12089478969573975,0.12592601776123047,0.12449400871992111,0.1210660487413(...TRUNCATED) | [false,true,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fals(...TRUNCATED) | [0,0,0,0,0,0,589824,589824,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | [0,0,0,0,0,589824,589824,589824,589824,589824,589824,0,0,589824,589824,33554432,33554432,0,0,0,0,0,0(...TRUNCATED) | [2.1701653003692627,2.1705987453460693,2.1710360050201416,2.1714694499969482,2.1818902492523193,2.28(...TRUNCATED) | [7.8202033042907715,7.7121686935424805,7.603124141693115,7.495089530944824,7.395228385925293,7.38545(...TRUNCATED) | 3.5554 | 4.0155 | 4,602 | 0.998044 | 4.906953 | 8741732477620738048 | 1237680328952447221 | [8115 301 5 179 245] | eboss | BOSS | eboss | v5_13_2 | good | QSO | BROADLINE | GALAXY | null | 347.625977 | 31.873047 | 2.291376 | 0.000571 | 0.267838 | 4.99781 | null | 0 | 1 |
8186-57452-885 | spec-8186-57452-0885-GALAXY--0.66957.fits | GALAXY | 0 | 8,186 | 57,452 | 885 | 0.66957 | 1.091919 | [-2.3620831966400146,6.715190410614014,-5.466472625732422,-2.0805044174194336,4.3041205406188965,-1.(...TRUNCATED) | [3.558000087738037,3.5580999851226807,3.558199882507324,3.558300018310547,3.5583999156951904,3.55850(...TRUNCATED) | [0.050816942006349564,0.04712218791246414,0.05410763621330261,0.05856765806674957,0.0511872954666614(...TRUNCATED) | [false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED) | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | [-0.07598357647657394,-0.07161887735128403,-0.06721337884664536,-0.06284867972135544,-0.049937147647(...TRUNCATED) | [11.891559600830078,11.940896034240723,11.990694046020508,12.040030479431152,12.070240020751953,11.9(...TRUNCATED) | 3.558 | 4.0165 | 4,586 | 0.996947 | 1.178943 | 9216860029386512384 | 1237655108908679856 | [2243 301 5 243 688] | eboss | BOSS | eboss | v5_13_2 | good | GALAXY | null | GALAXY | null | 157.883728 | 57.620457 | 0.669573 | 0.000482 | 0.669573 | 1.091919 | null | 0 | 1 |
9562-57817-731 | spec-9562-57817-0731-GALAXY--0.96924.fits | GALAXY | 0 | 9,562 | 57,817 | 731 | 0.96924 | 0.917748 | [8.29040241241455,5.264293670654297,0.7727403044700623,-5.298923015594482,6.717670440673828,-3.85855(...TRUNCATED) | [3.5576000213623047,3.5576999187469482,3.557800054550171,3.5578999519348145,3.558000087738037,3.5580(...TRUNCATED) | [0.05229678750038147,0.05207608640193939,0.06471167504787445,0.052888888865709305,0.0548209100961685(...TRUNCATED) | [false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED) | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,589824,589824,0,0,0,0,0,0,0,58982(...TRUNCATED) | [0,0,0,589824,589824,0,0,0,0,0,0,0,0,0,0,0,589824,589824,0,0,0,0,0,589824,589824,0,0,0,0,589824,5898(...TRUNCATED) | [0.007463488727807999,0.00398479588329792,0.00047359158634208143,-0.0030051013454794884,0.0071877199(...TRUNCATED) | [5.2153167724609375,5.315280437469482,5.4161787033081055,5.516142845153809,5.604756832122803,5.57328(...TRUNCATED) | 3.5576 | 4.0145 | 4,570 | 0.998468 | 1.008559 | 10766055976127977472 | 1237667210510926372 | [0 0 0 0 0] | eboss | BOSS | ELG_NGC | v5_13_2 | good | GALAXY | null | GALAXY | null | 138.847015 | 21.106745 | 0.969235 | 0.000272 | 0.969235 | 0.917748 | null | 0 | 1 |
1232-52731-530 | spec-1232-52731-0530-GALAXY-BROADLINE-0.08656.fits | GALAXY | 0 | 1,232 | 52,731 | 530 | 0.08656 | 24.967157 | [12.19363021850586,7.931386947631836,10.65414810180664,6.796050071716309,11.861612319946289,13.10981(...TRUNCATED) | [3.5803000926971436,3.580399990081787,3.5804998874664307,3.5806000232696533,3.580699920654297,3.5808(...TRUNCATED) | [0.03408436477184296,0.03614167869091034,0.03622470051050186,0.03751359507441521,0.05763392522931099(...TRUNCATED) | [false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED) | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | [201326592,201326592,201326592,67108864,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1048576,1048576,0,0,0,0,0,0,0,(...TRUNCATED) | [36.76107406616211,36.629798889160156,36.49729919433594,36.366024017333984,36.166259765625,35.315250(...TRUNCATED) | [0.3870052695274353,0.3892389237880707,0.39149343967437744,0.39372706413269043,0.39625829458236694,0(...TRUNCATED) | 3.5803 | 3.9641 | 3,839 | 1 | 24.907562 | 1387254416339396608 | 1237662239078416465 | [3525 20 6 220 111] | sdss | SDSS | legacy | 26 | marginal | GALAXY | BROADLINE | null | null | 188.132797 | 11.20634 | 0.086555 | 0.000019 | 0 | 24.967157 | null | 0 | 1 |
SDSS DR17 Spectral Classification Parquet Benchmark
This fixed supervised benchmark classifies SDSS DR17 optical spectra as GALAXY, QSO, or STAR. Rows contain native FITS arrays, common-grid spectral inputs, identifiers, derived spectral-quality fields, and metadata matched from specObj-dr17.fits.
Files
train.parquet
validation.parquet
test.parquet
dataset_metadata.json
| Split | Number of spectra |
|---|---|
| Train | 22,581 |
| Validation | 4,839 |
| Test | 4,839 |
The stratified split preserves the original 70%/15%/15% train/validation/test assignment, using seed 42.
Target labels
class_label is the target. class_id mapping:
{
"GALAXY": 0,
"QSO": 1,
"STAR": 2
}
| Class | Number of spectra |
|---|---|
| GALAXY | 20,348 |
| QSO | 5,803 |
| STAR | 6,108 |
Spectral arrays
native_flux, native_loglam, and native_ivar are the original ragged observed-frame FITS arrays. native_mask is true for non-finite pixels or ivar <= 0. native_and_mask and native_or_mask are SDSS pixel-mask bit vectors. processed_flux and processed_ivar are resampled onto the common grid used by the benchmark, but are not PCA components.
The common grid is stored in dataset_metadata.json: 4,000 points from log10 wavelength 3.6993999 to 3.8018000 (5004.95-6335.78 Angstrom). It is the strict common-support interval, so it does not extrapolate.
To reproduce the classification protocol, fit standardisation and PCA on train.parquet only. The catalog_* fields provide DR17 object IDs, positions, survey/program provenance, class/subclass, redshift diagnostics, warnings, primary flag, and S/N values.
Loading
from datasets import load_dataset
dataset = load_dataset("BrunoBarreto/sdss_dr17_spectral_classification")
train, validation, test = dataset["train"], dataset["validation"], dataset["test"]
For local use:
import pandas as pd
train = pd.read_parquet("train.parquet")
X_train = train["processed_flux"]
y_train = train["class_label"]
Provenance and responsible use
Built from the local SDSS FITS collection and DR17 specObj-dr17.fits catalogue.
- Downloads last month
- 25