@@ -57,7 +57,6 @@ class CometLogger(LightningLoggerBase):
57
57
... workspace=os.environ.get('COMET_WORKSPACE'), # Optional
58
58
... save_dir='.', # Optional
59
59
... project_name='default_project', # Optional
60
- ... rest_api_key=os.environ.get('COMET_REST_API_KEY'), # Optional
61
60
... experiment_name='default' # Optional
62
61
... )
63
62
>>> trainer = Trainer(logger=comet_logger)
@@ -71,7 +70,6 @@ class CometLogger(LightningLoggerBase):
71
70
... save_dir='.',
72
71
... workspace=os.environ.get('COMET_WORKSPACE'), # Optional
73
72
... project_name='default_project', # Optional
74
- ... rest_api_key=os.environ.get('COMET_REST_API_KEY'), # Optional
75
73
... experiment_name='default' # Optional
76
74
... )
77
75
>>> trainer = Trainer(logger=comet_logger)
@@ -83,8 +81,7 @@ class CometLogger(LightningLoggerBase):
83
81
project_name: Optional. Send your experiment to a specific project.
84
82
Otherwise will be sent to Uncategorized Experiments.
85
83
If the project name does not already exist, Comet.ml will create a new project.
86
- rest_api_key: Optional. Rest API key found in Comet.ml settings.
87
- This is used to determine version number
84
+ rest_api_key: Deprecated
88
85
experiment_name: Optional. String representing the name for this particular experiment on Comet.ml.
89
86
experiment_key: Optional. If set, restores from existing experiment.
90
87
"""
@@ -95,7 +92,6 @@ def __init__(
95
92
save_dir : Optional [str ] = None ,
96
93
workspace : Optional [str ] = None ,
97
94
project_name : Optional [str ] = None ,
98
- rest_api_key : Optional [str ] = None ,
99
95
experiment_name : Optional [str ] = None ,
100
96
experiment_key : Optional [str ] = None ,
101
97
** kwargs ,
@@ -129,16 +125,6 @@ def __init__(
129
125
self .experiment_name = experiment_name
130
126
self ._kwargs = kwargs
131
127
132
- if rest_api_key is not None :
133
- # Comet.ml rest API, used to determine version number
134
- self .rest_api_key = rest_api_key
135
- self .comet_api = API (self .rest_api_key )
136
- else :
137
- self .rest_api_key = None
138
- self .comet_api = None
139
-
140
- self ._kwargs = kwargs
141
-
142
128
@property
143
129
@rank_zero_experiment
144
130
def experiment (self ) -> CometBaseExperiment :
0 commit comments