Skip to content

Commit ec5b6ef

Browse files
committed
Remove api key requirements.
1 parent 68a4c2c commit ec5b6ef

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

comet/comet_callback.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@
3030
from sklearn.model_selection import train_test_split
3131

3232

33-
# Ensure API key is available and login
34-
if "COMET_API_KEY" not in os.environ:
35-
raise ValueError("COMET_API_KEY is missing! Please set it as an environment variable.")
36-
37-
login() # Explicit login
38-
39-
# Initialize experiment using API key instead of comet_ml.start()
40-
experiment = comet_ml.Experiment(api_key=os.getenv("COMET_API_KEY"))
41-
4233
# Log the project name
4334
experiment.set_name("comet-optuna-example")
4435

0 commit comments

Comments
 (0)