We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a4c2c commit ec5b6efCopy full SHA for ec5b6ef
comet/comet_callback.py
@@ -30,15 +30,6 @@
30
from sklearn.model_selection import train_test_split
31
32
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
42
# Log the project name
43
experiment.set_name("comet-optuna-example")
44
0 commit comments