forked from all-umass/superman-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
datasets-template.yml
55 lines (52 loc) · 2.08 KB
/
datasets-template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Default values for each dataset:
# vector: false
# public: true
# loader: (generic loader function)
# description: (none)
# urls: (empty list)
---
# Datasets are organized by spectrum type, then dataset name.
NIR:
# This would thus show up as "Asteroids [NIR]" in the listing of datasets.
Asteroids:
# This indicates that the spectra in this dataset are sampled at different
# wavelengths, so each one keeps its x-axis information separately.
vector: false
# If you provide a standard format HDF5 file and don't specify a "loader",
# the default loader function will be used.
# See backend/dataset_loaders.py for more information on the format.
file: /path/to/asteroids.hdf5
# Metadata entries are triplets of [key, kind, display_name],
# where the key refers to hdf5:/meta/<key>
metadata:
- [id, LookupMetadata, ID]
- [name, LookupMetadata, Name]
- [type, LookupMetadata, Type]
- [size, NumericMetadata, Size (mm)]
- [date, DateMetadata, Collection Date]
Corn:
# This custom loader function is looked up in custom_datasets.py
# It receives arguments specified in the 'file'/'files' fields.
loader: load_corn
# This means that all the data is sampled on a common x-axis.
vector: true
file: /path/to/corn.hdf5
# The description field is free-form, and shows up in the dataset listing.
description: >-
Corn spectra measured on 3 different NIR spectrometers with metadata
on moisture, oil, protein and starch values. Data was originally taken
at Cargill by Mike Blackburn and distributed by Eigenvector Research Inc.
# Any number of citation/reference URLs can be specified.
urls:
- http://www.eigenvector.com/data/Corn/
LIBS:
My Secret Dataset:
loader: load_my_secret_dataset
vector: true
# This dataset won't show up unless the user is logged in.
public: false
# Multiple files/directories can be specified when using a custom loader.
files:
- /path/to/secret_spectra.npz
- /path/to/secret_metadata.npz
- /path/to/secret_dir/