peal.web.config_builder.build_job_configs

peal.web.config_builder.build_job_configs(job_dir, fields, n_samples, rae_weights=None)[source]

Write data.yaml, generator.yaml and config.yaml into job_dir.

fields (validated by the app): input_height, input_width, normalization (+ mean/std), class_a_name, class_b_name. n_samples is the size of the ingested two-class dataset. rae_weights overrides $PEAL_RAE_WEIGHTS. Returns the path of config.yaml.