File tree Expand file tree Collapse file tree 1 file changed +26
-4
lines changed
pytorch_lightning/loggers Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,24 @@ def experiment(self) -> MlflowClient:
171
171
return self ._mlflow_client
172
172
173
173
@property
174
- def run_id (self ):
175
- # create the experiment if it does not exist to get the run id
174
+ def run_id (self ) -> str :
175
+ """
176
+ Create the experiment if it does not exist to get the run id.
177
+
178
+ Returns:
179
+ The run id.
180
+ """
176
181
_ = self .experiment
177
182
return self ._run_id
178
183
179
184
@property
180
- def experiment_id (self ):
181
- # create the experiment if it does not exist to get the experiment id
185
+ def experiment_id (self ) -> str :
186
+ """
187
+ Create the experiment if it does not exist to get the experiment id.
188
+
189
+ Returns:
190
+ The experiment id.
191
+ """
182
192
_ = self .experiment
183
193
return self ._experiment_id
184
194
@@ -239,8 +249,20 @@ def save_dir(self) -> Optional[str]:
239
249
240
250
@property
241
251
def name (self ) -> str :
252
+ """
253
+ Get the experiment id.
254
+
255
+ Returns:
256
+ The experiment id.
257
+ """
242
258
return self .experiment_id
243
259
244
260
@property
245
261
def version (self ) -> str :
262
+ """
263
+ Get the run id.
264
+
265
+ Returns:
266
+ The run id.
267
+ """
246
268
return self .run_id
You can’t perform that action at this time.
0 commit comments