* fix code formatting

* add module init logging

* general improvements
This commit is contained in:
Łukasz Zalewski authored and GitHub committed 2021-03-06 19:43:48 +01:00
1 parent caa566dfd8
commit b45d3b31ec
13 files changed
+226 -162

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
# @package _global_
# example hyperparameter optimization of some experiment with optuna:
# python train.py -m --config-name config_optuna.yaml +experiment=exp_example_simple logger=wandb
# python train.py -m --config-name config_optuna.yaml +experiment=exp_example_simple logger=wandb
defaults:
# load everything from main config file
+1 -1
View File
@@ -11,7 +11,7 @@ defaults:
- override /logger: null
# we override default configurations with nulls to prevent them from loading at all
# instead we define all modules and their paths directly in this config,
# instead we define all modules and their paths directly in this config,
# so everything is stored in one place for more readibility
seed: 12345
+1 -1
View File
@@ -13,7 +13,7 @@ defaults:
# all parameters below will be merged with parameters from default configurations set above
# this allows you to overwrite only specified parameters
seed: 12345
seed: 12345
trainer:
min_epochs: 1
+4 -4
View File
@@ -3,7 +3,7 @@
_target_: pytorch_lightning.Trainer
# set -1 to train on all GPUs available, set 0 to train on CPU only
gpus: 0
gpus: 0
# auto_select_gpus: True
min_epochs: 3
@@ -13,7 +13,7 @@ max_epochs: 3
# overfit_batches: 10
# overfit on 5% of the training data
# overfit_batches: 0.05
# overfit_batches: 0.05
# run validation loop every 5 training epochs
# check_val_every_n_epoch: 5
@@ -25,7 +25,7 @@ val_check_interval: 0.5
# val_check_interval: 100
# run for 1 train, 1 val and 1 test batch
# fast_dev_run: True
fast_dev_run: False
# use only 20% of the data
limit_train_batches: 0.2
@@ -51,7 +51,7 @@ accumulate_grad_batches: 5
# no accumulation for epochs 1-4. accumulate 3 for epochs 5-10. accumulate 20 after that
# accumulate_grad_batches: {5: 3, 10: 20}
# automatically find the largest batch size that fits into memory and is power of 2
# automatically find the largest batch size that fits into memory and is power of 2
# (requires calling trainer.tune(model=model, datamodule=datamodule))
# auto_scale_batch_size:'power'
+2 -1
View File
@@ -4,6 +4,7 @@ min_epochs: 1
max_epochs: 10
gradient_clip_val: 0.5
num_sanity_val_steps: 2
progress_bar_refresh_rate: 20
progress_bar_refresh_rate: 10
weights_summary: null
default_root_dir: "lightning_logs/"
fast_dev_run: False