* update template to pytorch 1.10+ and lightning 1.5+ * add experiment mode to all experiment configs and implement special logging paths for experiment mode * add `MaxMetric` to model, for computation of best so far validation accuracy * add RichProgressBar to default callbacks * get rid of trick for preventing auto hparam logging, since lightning now supports it with `self.save_hyperparameters(logger=False)` * add `self.save_hyperparameters()` to datamodule since lightinng now supports it * deprecate Apex support * deprecate bash script for conda setup * change `terminate_on_nan` debug option to `detect_anomaly` for compatibility with lightning v1.5 * specify model and datamodule during `trainer.test()`, for compatibility with lightning v1.5 * remove `configs/trainer/all_params.yaml` * make hyperparameter optimization compatible with lightning v1.5 * general documentation improvements
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
# @package _global_
|
|
|
|
# specify here default training configuration
|
|
defaults:
|
|
- _self_
|
|
- trainer: default.yaml
|
|
- model: mnist_model.yaml
|
|
- datamodule: mnist_datamodule.yaml
|
|
- callbacks: default.yaml
|
|
- logger: null # set logger here or use command line (e.g. `python run.py logger=wandb`)
|
|
|
|
- mode: default.yaml
|
|
|
|
- experiment: null
|
|
- hparams_search: null
|
|
|
|
# enable color logging
|
|
- override hydra/hydra_logging: colorlog
|
|
- override hydra/job_logging: colorlog
|
|
|
|
# path to original working directory
|
|
# hydra hijacks working directory by changing it to the current log directory,
|
|
# so it's useful to have this path as a special variable
|
|
# https://hydra.cc/docs/next/tutorials/basic/running_your_app/working_directory
|
|
work_dir: ${hydra:runtime.cwd}
|
|
|
|
# path to folder with data
|
|
data_dir: ${work_dir}/data/
|
|
|
|
# pretty print config at the start of the run using Rich library
|
|
print_config: True
|
|
|
|
# disable python warnings if they annoy you
|
|
ignore_warnings: True
|
|
|
|
# evaluate on test set, using best model weights achieved during training
|
|
# lightning chooses best weights based on metric specified in checkpoint callback
|
|
test_after_training: True
|
|
|
|
# seed for random number generators in pytorch, numpy and python.random
|
|
seed: null
|
|
|
|
# name of the run is accessed by loggers
|
|
# should be used along with experiment mode
|
|
name: null
|