improve configs

This commit is contained in:
hobogalaxy committed 2021-01-10 21:12:14 +01:00
1 parent 90174d52c4
commit fbe2464426
14 files changed
+74 -62

No files matched your search

@@ -1,7 +1,7 @@
# @package _group_
model_checkpoint:
class: "pytorch_lightning.callbacks.ModelCheckpoint"
class: pytorch_lightning.callbacks.ModelCheckpoint
args:
monitor: "val_acc" # name of the logged metric which determines when model is improving
save_top_k: 1 # save k best lightning_models (determined by above metric)
@@ -11,7 +11,7 @@ model_checkpoint:
early_stopping:
class: "pytorch_lightning.callbacks.EarlyStopping"
class: pytorch_lightning.callbacks.EarlyStopping
args:
monitor: "val_acc" # name of the logged metric which determines when model is improving
patience: 100 # how many epochs of not improving until training stops
+7 -13
View File
@@ -1,24 +1,18 @@
# @package _group_
defaults:
- default_callbacks.yaml
save_best_metric_scores_to_wandb:
class: "pytorch_modules.lightning_callbacks.wandb_callbacks.SaveBestMetricScoresToWandb"
class: pytorch_modules.lightning_callbacks.wandb_callbacks.SaveBestMetricScoresToWandb
args: {}
save_code_to_wandb_as_artifact:
class: "pytorch_modules.lightning_callbacks.wandb_callbacks.SaveCodeToWandb"
class: pytorch_modules.lightning_callbacks.wandb_callbacks.SaveCodeToWandb
args:
code_dir: ${work_dir}/
save_confusion_matrix_to_wandb:
class: "pytorch_modules.lightning_callbacks.wandb_callbacks.SaveConfusionMatrixToWandb"
args:
class_names: ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9')
save_f1_heatmap_to_wandb:
class: "pytorch_modules.lightning_callbacks.wandb_callbacks.SaveMetricsHeatmapToWandb"
upload_ckpts_to_wandb_as_artifact:
class: pytorch_modules.lightning_callbacks.wandb_callbacks.UploadAllCheckpointsToWandb
args:
class_names: ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9')
ckpt_dir: "checkpoints/"
upload_best_only: True