Reference / Configuration
Configuration¶
This page lists the rules for a configuration file, its sections and the example files. Each section’s page in the API reference lists every field with its type, default and description.
Rules¶
A configuration is one YAML file, loaded into
ExperimentConfig.An unknown key is an error, so a misspelled setting fails when the file loads.
data.surveyanddata.label_sourceare aliases ofdata.surveysanddata.label_sources. A string becomes a list of one.dorothy trainfills inmulti_head_model.survey_wavelengths,multi_head_model.label_sourcesanddata.parameter_namesfrom the catalogue. A value that you set fordata.parameter_names,multi_head_model.n_parametersormodel.output_featuresmust match the catalogue’s parameters.The checkpoint stores the completed configuration as
config.yaml.dorothy evaluate,dorothy predictanddorothy inforead it there.
Model sections¶
A configuration has model or multi_head_model, not both.
Data |
Section |
Without a model section |
|---|---|---|
One survey, one label source |
|
|
Several surveys or several label sources |
|
|
dorothy train adds multi_head_model for several surveys or label
sources, so a model section there is an error. In Python,
ExperimentConfig with several label sources and no multi_head_model is an
error, and with several surveys and model it warns.
Checks across fields¶
Rule |
Fields |
|---|---|
|
|
The keys name configured label sources |
|
|
|
|
|
|
|
Training rejects |
|
Sections¶
Key |
Fields |
Sets |
|---|---|---|
|
The run’s name, output directory, random seed and device |
|
|
Catalogue, surveys, label sources, label quality cut, split, spectrum preprocessing |
|
|
The MLP for one survey and one label source |
|
|
Encoders, trunk and output heads (The model) |
|
|
Epochs, batches, loss, warm-up, weight averaging, calibration, loss weights of label sources, mixed precision, saved epochs |
|
|
Optimizer and weight decay |
|
|
Learning-rate schedule |
|
|
Random hiding of label sources and labels during training |
|
|
Random hiding of surveys and spectral blocks during training |
Example files¶
The files in examples/ use the catalogue at data/super_catalogue.h5,
except variant6.
File |
Surveys |
Label sources |
Model |
Masking |
|---|---|---|---|---|
|
BOSS |
APOGEE |
|
no |
|
BOSS |
APOGEE |
|
no |
|
BOSS, DESI |
APOGEE |
|
no |
|
LAMOST LRS, LAMOST MRS |
APOGEE, GALAH |
|
yes |
|
all four |
APOGEE |
|
no |
|
all four |
APOGEE |
|
yes |
|
all four |
APOGEE, GALAH |
|
yes |
variant6 reads data/super_catalogue_xh_extended.h5, the catalogue with 20
parameters and [X/H] abundances. Its header comment gives the builder command.