Dev (#78)
* add neptune integration * improve readme * quick fix * improve datamodule * remove unnecessary folders from .gitignore * change folder structure * add optuna config * add bash tests * redesign readme.md * change wandb callbacks names * fix wandb callbacks * resolve issues with sweeping alongside wandb * improve rich config printing * update readme * Update README.md
This commit is contained in:
56 files changed
+1294
-837
No files matched your search
@@ -0,0 +1,74 @@
|
||||
# @package _global_
|
||||
|
||||
# to execute this experiment run:
|
||||
# python train.py +experiment=exp_example_full
|
||||
|
||||
defaults:
|
||||
- override /trainer: null # override trainer to null so it's not loaded from main config defaults...
|
||||
- override /model: null
|
||||
- override /datamodule: null
|
||||
- override /callbacks: null
|
||||
- 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,
|
||||
# so everything is stored in one place for more readibility
|
||||
|
||||
seed: 12345
|
||||
|
||||
trainer:
|
||||
_target_: pytorch_lightning.Trainer
|
||||
gpus: 0
|
||||
min_epochs: 1
|
||||
max_epochs: 10
|
||||
gradient_clip_val: 0.5
|
||||
accumulate_grad_batches: 2
|
||||
weights_summary: null
|
||||
# resume_from_checkpoint: ${work_dir}/last.ckpt
|
||||
|
||||
model:
|
||||
_target_: src.models.mnist_model.LitModelMNIST
|
||||
optimizer: adam
|
||||
lr: 0.001
|
||||
weight_decay: 0.00005
|
||||
architecture: SimpleDenseNet
|
||||
input_size: 784
|
||||
lin1_size: 256
|
||||
dropout1: 0.30
|
||||
lin2_size: 256
|
||||
dropout2: 0.25
|
||||
lin3_size: 128
|
||||
dropout3: 0.20
|
||||
output_size: 10
|
||||
|
||||
datamodule:
|
||||
_target_: src.datamodules.mnist_datamodule.MNISTDataModule
|
||||
data_dir: ${data_dir}
|
||||
batch_size: 64
|
||||
train_val_test_split: [55_000, 5_000, 10_000]
|
||||
num_workers: 0
|
||||
pin_memory: False
|
||||
|
||||
callbacks:
|
||||
model_checkpoint:
|
||||
_target_: pytorch_lightning.callbacks.ModelCheckpoint
|
||||
monitor: "val/acc"
|
||||
save_top_k: 2
|
||||
save_last: True
|
||||
mode: "max"
|
||||
dirpath: 'checkpoints/'
|
||||
filename: 'sample-mnist-{epoch:02d}'
|
||||
early_stopping:
|
||||
_target_: pytorch_lightning.callbacks.EarlyStopping
|
||||
monitor: "val/acc"
|
||||
patience: 100
|
||||
mode: "max"
|
||||
|
||||
logger:
|
||||
wandb:
|
||||
tags: ["best_model", "uwu"]
|
||||
notes: "Description of this model."
|
||||
neptune:
|
||||
tags: ["best_model"]
|
||||
csv_logger:
|
||||
save_dir: "."
|
||||
@@ -0,0 +1,31 @@
|
||||
# @package _global_
|
||||
|
||||
# to execute this experiment run:
|
||||
# python train.py +experiment=exp_example_simple
|
||||
|
||||
defaults:
|
||||
- override /trainer: default_trainer.yaml # choose trainer from 'configs/trainer/' folder or set to null
|
||||
- override /model: mnist_model.yaml # choose model from 'configs/model/' folder or set to null
|
||||
- override /datamodule: mnist_datamodule.yaml # choose datamodule from 'configs/datamodule/' folder or set to null
|
||||
- override /callbacks: default_callbacks.yaml # choose callback set from 'configs/callbacks/' folder or set to null
|
||||
- override /logger: null # choose logger from 'configs/logger/' folder or set to null
|
||||
|
||||
# all parameters below will be merged with parameters from default configurations set above
|
||||
# this allows you to overwrite only specified parameters
|
||||
|
||||
seed: 12345
|
||||
|
||||
trainer:
|
||||
min_epochs: 1
|
||||
max_epochs: 10
|
||||
gradient_clip_val: 0.5
|
||||
|
||||
model:
|
||||
lr: 0.001
|
||||
lin1_size: 128
|
||||
lin2_size: 256
|
||||
lin3_size: 64
|
||||
|
||||
datamodule:
|
||||
batch_size: 64
|
||||
train_val_test_split: [55_000, 5_000, 10_000]
|
||||
Reference in new issue
Block a user