Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
test
dict
{ "gaia_spectra": [ [ 0.3965170979499817 ], [ 0.28218314051628113 ], [ 0.2842385470867157 ], [ 0.35261157155036926 ], [ 0.40605494379997253 ], [ 0.3764990270137787 ], [ 0.2961152195930481 ], [ 0.266736388206481...
{ "gaia_spectra": [ [ 0.5548785328865051 ], [ 0.4251942038536072 ], [ 0.4165214002132416 ], [ 0.45736807584762573 ], [ 0.45695772767066956 ], [ 0.4051564335823059 ], [ 0.36487504839897156 ], [ 0.372729510068893...
{ "gaia_spectra": [ [ 0.42583325505256653 ], [ 0.3890012204647064 ], [ 0.3498416543006897 ], [ 0.3632252812385559 ], [ 0.385882705450058 ], [ 0.34489014744758606 ], [ 0.2832063138484955 ], [ 0.3052991032600403 ...
{ "gaia_spectra": [ [ 0.2780151069164276 ], [ 0.23148320615291595 ], [ 0.34556159377098083 ], [ 0.3912332355976105 ], [ 0.3077053427696228 ], [ 0.21976225078105927 ], [ 0.26346802711486816 ], [ 0.39471095800399...
{ "gaia_spectra": [ [ 0.6014830470085144 ], [ 0.5206496119499207 ], [ 0.511734127998352 ], [ 0.5250343084335327 ], [ 0.5165821313858032 ], [ 0.496280699968338 ], [ 0.50826495885849 ], [ 0.5453834533691406 ]...
{"gaia_spectra":[[0.7813441753387451],[0.7413676977157593],[0.7367808222770691],[0.7474188208580017](...TRUNCATED)
{"gaia_spectra":[[0.6876602172851562],[0.6163153648376465],[0.5645701289176941],[0.5592796802520752](...TRUNCATED)
{"gaia_spectra":[[0.578041672706604],[0.5333926677703857],[0.513859748840332],[0.5064059495925903],[(...TRUNCATED)
{"gaia_spectra":[[0.6002808213233948],[0.5433872938156128],[0.551097571849823],[0.5498573780059814],(...TRUNCATED)
{"gaia_spectra":[[0.7447304725646973],[0.7228870391845703],[0.7431989908218384],[0.7374436855316162](...TRUNCATED)
End of preview. Expand in Data Studio

SpecCLIP Test Data

Test data for SpecCLIP - Cross-modal stellar spectral analysis.

Dataset Description

This dataset contains paired Gaia XP and LAMOST LRS spectra for testing cross-modal retrieval and embedding analysis.

Files

  • gaia_lamost_test_only.h5: HDF5 file containing paired spectra
    • test/source_ids: Gaia source identifiers
    • test/gaia_spectra: Gaia XP spectra (N, 343)
    • test/lamost_spectra: LAMOST LRS spectra (N, 1462)

Usage

Download

from huggingface_hub import hf_hub_download

# Download test data
test_data_path = hf_hub_download(
    repo_id="astroshawn/SpecCLIP-TestData-Small",
    filename="gaia_lamost_test_only.h5",
    repo_type="dataset",
    local_dir="./test_data"
)

Or using CLI:

huggingface-cli download astroshawn/SpecCLIP-TestData-Small --local-dir ./test_data --repo-type dataset

Load Data

import h5py
import numpy as np

with h5py.File(test_data_path, 'r') as f:
    source_ids = np.array(f['test/source_ids'][:])
    gaia_spectra = np.array(f['test/gaia_spectra'][:])
    lamost_spectra = np.array(f['test/lamost_spectra'][:])

print(f"Number of test samples: {len(source_ids)}")
print(f"Gaia XP spectra shape: {gaia_spectra.shape}")
print(f"LAMOST LRS spectra shape: {lamost_spectra.shape}")

Use with SpecCLIP

This test data is used for:

  • Building embedding databases for spectral retrieval
  • Cross-modal spectrum prediction
  • In-modal and cross-modal similarity search

See the SpecCLIP model repository for usage examples.

Citation

If you use this data, please cite the SpecCLIP paper.

Downloads last month
28