File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ class CSVLogger(Logger):
37
37
38
38
Args:
39
39
root_dir: The root directory in which all your experiments with different names and versions will be stored.
40
- name: Experiment name. Defaults to ``'lightning_logs'``.
40
+ name: Experiment name. Defaults to ``'lightning_logs'``. If name is ``None``, logs
41
+ (versions) will be stored to the save dir directly.
41
42
version: Experiment version. If version is not specified the logger inspects the save
42
43
directory for existing versions, then automatically assigns the next available version.
43
44
If the version is specified, and the directory already contains a metrics file for that version, it will be
@@ -60,7 +61,7 @@ class CSVLogger(Logger):
60
61
def __init__ (
61
62
self ,
62
63
root_dir : _PATH ,
63
- name : str = "lightning_logs" ,
64
+ name : Optional [ str ] = "lightning_logs" ,
64
65
version : Optional [Union [int , str ]] = None ,
65
66
prefix : str = "" ,
66
67
flush_logs_every_n_steps : int = 100 ,
Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ class CSVLogger(Logger, FabricCSVLogger):
82
82
83
83
Args:
84
84
save_dir: Save directory
85
- name: Experiment name. Defaults to ``'lightning_logs'``.
85
+ name: Experiment name, optional. Defaults to ``'lightning_logs'``. If name is ``None``, logs
86
+ (versions) will be stored to the save dir directly.
86
87
version: Experiment version. If version is not specified the logger inspects the save
87
88
directory for existing versions, then automatically assigns the next available version.
88
89
prefix: A string to put at the beginning of metric keys.
@@ -95,7 +96,7 @@ class CSVLogger(Logger, FabricCSVLogger):
95
96
def __init__ (
96
97
self ,
97
98
save_dir : _PATH ,
98
- name : str = "lightning_logs" ,
99
+ name : Optional [ str ] = "lightning_logs" ,
99
100
version : Optional [Union [int , str ]] = None ,
100
101
prefix : str = "" ,
101
102
flush_logs_every_n_steps : int = 100 ,
You can’t perform that action at this time.
0 commit comments