Datasets:

Modalities:
Image
Text
Formats:
parquet
ArXiv:
Libraries:
Datasets
Dask
License:
Smith42 commited on
Commit
8d63c6a
·
verified ·
1 Parent(s): afa695b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -1
README.md CHANGED
@@ -41,7 +41,16 @@ I've split away 1% of the images into a test set, and 1% into a validation set.
41
  The remaining 98% of the images comprise the training set.
42
 
43
  There is also accompanying metadata!
44
- The metadata is in parquet format in the root dir of this repo.
 
 
 
 
 
 
 
 
 
45
  You can link the metadata with the galaxies via their dr8_id.
46
 
47
  ## Useful links
 
41
  The remaining 98% of the images comprise the training set.
42
 
43
  There is also accompanying metadata!
44
+ To combine the metadata with the galaxy images you can do (for example):
45
+ ```python
46
+ from datasets import load_dataset, concatenate_datasets
47
+
48
+ # Load the `galaxies' dataset with metadata
49
+ metadata = load_dataset("Smith42/galaxies_metadata", streaming=True)
50
+ galaxies = load_dataset("Smith42/galaxies", streaming=True)
51
+ combined = concatenate_datasets([galaxies['train'], metadata['train']])
52
+ ```
53
+ The metadata is also available in parquet format in the root dir of this repo.
54
  You can link the metadata with the galaxies via their dr8_id.
55
 
56
  ## Useful links