Skip to content

Commit

Permalink
Added doc strings for Comet logger (#9114)
Browse files Browse the repository at this point in the history
  • Loading branch information
bamblebam authored Aug 26, 2021
1 parent 8efdeb2 commit 0752bcd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pytorch_lightning/loggers/comet.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,22 @@ def finalize(self, status: str) -> None:

@property
def save_dir(self) -> Optional[str]:
"""
Gets the save directory.
Returns:
The path to the save directory.
"""
return self._save_dir

@property
def name(self) -> str:
"""
Gets the project name.
Returns:
The project name if it is specified, else "comet-default".
"""
# Don't create an experiment if we don't have one
if self._experiment is not None and self._experiment.project_name is not None:
return self._experiment.project_name
Expand All @@ -283,6 +295,19 @@ def name(self) -> str:

@property
def version(self) -> str:
"""
Gets the version.
Returns:
The first one of the following that is set in the following order
1. experiment id.
2. experiment key.
3. "COMET_EXPERIMENT_KEY" environment variable.
4. future experiment key.
If none are present generates a new guid.
"""
# Don't create an experiment if we don't have one
if self._experiment is not None:
return self._experiment.id
Expand Down

0 comments on commit 0752bcd

Please sign in to comment.