SDK Configuration
Python SDK Configuration ¶
On every trainer machine where you install the Comet SDK (i.e pip install comet_ml
) you will also need to define your internal Comet installation
import os
os.environ["COMET_URL_OVERRIDE"]="http://{replace-me}/clientlib/"
from comet_ml import Experiment
Environment variable:
export COMET_URL_OVERRIDE=http://{replace-me}/clientlib/
Config file:
[comet]
url_override=http://{replace-me}/clientlib/
Create a test.py
file with this code snippet to test the installation:
import os
os.environ["COMET_URL_OVERRIDE"] = "http://{replace-me}/clientlib/"
from comet_ml import start
from time import sleep
experiment = start(project_name="test-comet")
experiment.set_name("testing comet")
experiment.log_other("finished", False)
for y in range(10):
experiment.log_metric("a", y)
experiment.log_parameter("paramA", 0.31000005)
sleep(0.1)
experiment.log_other("finished", True)
Run:
pip install comet-ml
python test.py
Nov. 18, 2024